apk API version
apk API version
I get two warnings when uploading my apk to the google play console
First is that my apk is targeted to API platform 26
secondly it says that the app is not optimized
I can also see that warning in the Lint report created when compiling.
../../build.gradle:9: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
6 defaultConfig {
7 applicationId 'com.amy66dev.abandoned'
8 minSdkVersion 14
9 targetSdkVersion 26
10 versionCode 107
11 versionName "1.07"
12 }
For now this is not a problem, but from august 2019, all apps must be targeted to API 28.
Can this be corrected somewhere in a script, or is there something else that needs update?
First is that my apk is targeted to API platform 26
secondly it says that the app is not optimized
I can also see that warning in the Lint report created when compiling.
../../build.gradle:9: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
6 defaultConfig {
7 applicationId 'com.amy66dev.abandoned'
8 minSdkVersion 14
9 targetSdkVersion 26
10 versionCode 107
11 versionName "1.07"
12 }
For now this is not a problem, but from august 2019, all apps must be targeted to API 28.
Can this be corrected somewhere in a script, or is there something else that needs update?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: apk API version
You can ignore all these warnings. As soon as that target requirement is raised to API 28 I'll release an update for the APK Compiler so that you can still get your apps onto the app store.
Re: apk API version
How is that update coming along?
Target is API 28 already since two weeks for new projects, and for updates the date Is 1 september. This is not a pressing issue for me, since I have no new projects ready for release now. But I hope to be able to publish updates to my existing ones after 1 september.
Target is API 28 already since two weeks for new projects, and for updates the date Is 1 september. This is not a pressing issue for me, since I have no new projects ready for release now. But I hope to be able to publish updates to my existing ones after 1 september.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: apk API version
No worries, the update will come.
Re: apk API version
I just attempted to upload a new apk for beta testing at my google play console account, but I am now getting upload errors due to the app does not meet the API requirements.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: apk API version
Here it is: viewtopic.php?f=19&t=2259
Re: apk API version
Are there plans for an update?
Since august 2020 google play requires target API 29 for new projects.
API 28 is still allowed for updates until november.
Since august 2020 google play requires target API 29 for new projects.
API 28 is still allowed for updates until november.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: apk API version
Thanks for the pointer! I'll try to release an update in time for the new target API requirement.
Re: apk API version
An easy workaround I found as I just started trying to upload stuff in the google play console, is to go to the "Custom build script " tab and activate the "Use custom build.gradle" checkbox, then change:
toandroid {
compileSdkVersion %COMPILESDK%
buildToolsVersion '%BUILDTOOLS%'
defaultConfig {
applicationId '%PACKAGE%'
minSdkVersion %MINSDK%
targetSdkVersion %TARGETSDK%
versionCode %VERSIONCODE%
versionName "%VERSION%"
}
that should take care of the google console warning until Andreas releases a new compilerandroid {
compileSdkVersion 29
buildToolsVersion '%BUILDTOOLS%'
defaultConfig {
applicationId '%PACKAGE%'
minSdkVersion 15 <-- (optional) I need 15 supported for my old phone with ICS
targetSdkVersion 29
versionCode %VERSIONCODE%
versionName "%VERSION%"
}