Page 1 of 3

apk API version

Posted: Tue Jul 02, 2019 7:28 pm
by amyren
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?

Re: apk API version

Posted: Wed Jul 03, 2019 11:31 am
by airsoftsoftwair
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

Posted: Tue Aug 13, 2019 6:18 pm
by amyren
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.

Re: apk API version

Posted: Fri Aug 16, 2019 11:34 pm
by airsoftsoftwair
No worries, the update will come.

Re: apk API version

Posted: Sun Aug 25, 2019 8:06 pm
by amyren
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.

Re: apk API version

Posted: Mon Aug 26, 2019 3:00 pm
by airsoftsoftwair
amyren wrote: Sun Aug 25, 2019 8:06 pm 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.
Will be fixed soon :)

Re: apk API version

Posted: Sun Sep 15, 2019 2:38 pm
by airsoftsoftwair

Re: apk API version

Posted: Mon Oct 12, 2020 12:28 pm
by amyren
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.

Re: apk API version

Posted: Wed Oct 14, 2020 10:38 pm
by airsoftsoftwair
Thanks for the pointer! I'll try to release an update in time for the new target API requirement.

Re: apk API version

Posted: Mon Oct 26, 2020 7:13 am
by AlexC
amyren wrote: Mon Oct 12, 2020 12:28 pm 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.
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:
android {
compileSdkVersion %COMPILESDK%
buildToolsVersion '%BUILDTOOLS%'
defaultConfig {
applicationId '%PACKAGE%'
minSdkVersion %MINSDK%
targetSdkVersion %TARGETSDK%
versionCode %VERSIONCODE%
versionName "%VERSION%"
}
to
android {
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%"
}
that should take care of the google console warning until Andreas releases a new compiler