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.
This is because the minimum requirement for Google play is api 28, see Meet Google Play's target API level requirement. Here the excerpt:
When you upload an APK, it needs to meet Google Play’s target API level requirements. Starting August 1, 2019, Google Play requires that new apps target at least Android 9.0 (API level 28), and that app updates target Android 9.0 from November 1, 2019. Until these dates, new apps and app updates must target at least Android 8.0 (API level 26).
Hence, the Play Store is rejecting your application if target version is < 28.
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.
You need to make sure that compileSdkVersion
, buildToolsVersion
, targetSdkVersion
, and support libraries
dependencies use the same version. So, make sure your build.gradle
something like the following:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
...
minSdkVersion 15
targetSdkVersion 28
...
}
}
dependencies {
implementation 'com.android.support:appcompat-v7.28.0.0'
...
}