Android Target SDK version

41 views
Skip to first unread message

mcw

unread,
Feb 19, 2017, 5:58:23 PM2/19/17
to CodenameOne Discussions


I just uploaded a new version of my app to the Google Play store and got a warning message.

Previous builds used Ant. This is the first build I have submitted that used Gradle.

I have set the build property
android:minSdkVersion=9. I have not set the build property android.targetSDKVersion

I have attached a screenshot of the warning I received. Is this expected?  I don't know where the target SDK came from. Google is saying that the new version will be available on fewer devices than the old version.

It sounds like on my next build I have to set
android.targetSDKVersion=23. Make sense?

I am holding off on the release for now.

Thanks.

Shai Almog

unread,
Feb 20, 2017, 1:03:41 AM2/20/17
to CodenameOne Discussions
It's good that you are cautious. Once you update to level 23 you can't go back and if there is a regression you will have a major problem. I suggest using the beta channel in Google Play to properly test the app for potential regressions and verify that nothing broke with this change.

mcw

unread,
Feb 20, 2017, 11:21:44 AM2/20/17
to CodenameOne Discussions
How did I get to 22/23 though?

I did not specify a target, there are minimal changes to my app.

Thanks

mcw

unread,
Feb 20, 2017, 11:50:14 AM2/20/17
to CodenameOne Discussions
My last version had API level 9+, target SDK 14.

My new version has API level 15+, target SDK 23.

Shai Almog

unread,
Feb 21, 2017, 2:02:10 AM2/21/17
to CodenameOne Discussions
We migrated to 23 back in August: https://www.codenameone.com/blog/java-8-api-23-defaults.html
This is important for keeping up with Google's latest especially for IAP. It's also important in terms of permissions as installation on Android is far smoother now with API 23.
Reply all
Reply to author
Forward
0 new messages