apk API version

Please post anything related to the Hollywood APK Compiler here
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

apk API version

Post 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?
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: apk API version

Post 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.
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: apk API version

Post 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.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: apk API version

Post by airsoftsoftwair »

No worries, the update will come.
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: apk API version

Post 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.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: apk API version

Post 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 :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: apk API version

Post by airsoftsoftwair »

amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: apk API version

Post 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.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: apk API version

Post by airsoftsoftwair »

Thanks for the pointer! I'll try to release an update in time for the new target API requirement.
AlexC
Posts: 29
Joined: Sat Mar 09, 2019 2:40 am

Re: apk API version

Post 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
Post Reply