androidandroid-version

How to fix the version update the target version is change to 28


When I upload the app in the play store its throws an error to change the target version to 28 if I changed I got a lot of error.So anyone helps me to solve this problem. I tried but nothing is working for me.

I changed all the libraries to updated version but in my code, I am data binding I am getting a lot of errors in data binding generated class I shared the Gradle file.

I expect the correct solution to solve this issue


Solution

  • You need to change minSdkVersion, targetSdkVersion and buildToolsVersion. BuildTools should be targeting targetSdkVersion e.g:

    android {
        defaultConfig {
            minSdkVersion 23
            targetSdkVersion 28
        }
        buildToolsVersion '28.0.3'
    }
    

    and you should match the com.android.support implementations to the buildToolsVersion