Android SDK version in APK

2346
3
05-10-2018 11:49 AM
by Anonymous User
Not applicable

Hi AppStudio team

I am attempting to deploy an app to the Google Play store. This app replaces an existing app made by a different developer over a year ago.

I have got all the way to the last step where I want to publish the app into production, and I'm getting an error message.

It's saying that the apk's (that came out of CloudMake) are targeting SDK 16, and is rejecting it because it needs to target SDK 23 or higher.

The app is built using AppStudio 2.x and Runtime v100.1.

Can anyone tell me why this is happening and what to do to get the apk targeting the higher version? Is there something I can do to the APK files, or is this a change that would need to happen on the build servers?

See attached screenshot.

cheers,

-Paul

0 Kudos
3 Replies
SiddeshPillai1
Esri Contributor

Hi Paul,

Thank you for reaching out. This requires a more involved discussion than a geonet reply.

You can reach out the support for similar issues.

Watch out for a reply from us. 

Best,

Siddesh

0 Kudos
by Anonymous User
Not applicable

Thanks Siddesh.

After chatting with Sathya this morning, we were able to establish that AppStudio v3.0 is already set to target SDK23 for android, so submitting the build through v3.0 achieves what I need for Android.

There is also a way to manually set this target sdk version information for android in the appinfo.json file, but only 3.0 seems to honour the setting.

cheers,

-Paul

0 Kudos
ShobanaSuresh
Esri Contributor

Hi Paul,

 

FYI. Behavior changes listed in the below docs apply to your app when you set the targetSdkVersion to 23+

 

targetSdk:23

https://developer.android.com/about/versions/marshmallow/android-6.0-changes

 

24:

https://developer.android.com/about/versions/nougat/android-7.0-changes

 

26:

https://developer.android.com/about/versions/oreo/android-8.0-changes

 

For e.g., Once the targetSdkVersion is set to 23+, apps need to support the new Android permission model, where users can directly manage app permissions at runtime.

This is already handled in AppFramework (AppStudio 3.0) and Qt Framework (Qt5.10.0 used in AppStudio 3.0).  AppStudio 2.x does not support the Android runtime permission model. So, using AppStudio 3.0 would be the way to go.

 

Thanks

Shobana

 

0 Kudos