How do we change our apps "Target API level"? It seems to be a new Google requirement that will soon be enforced.

354 views
Skip to first unread message

davefinney

unread,
May 16, 2018, 6:26:59 PM5/16/18
to DroidScript
Hi, I've found this warning on Google:

"Target API level requirements from August 2018

Warning:

Your app currently targets API level 15 and must target at least API level 26 to ensure it is built on the latest APIs optimised for security and performance."



How can I find out what my apps Target API level is, and how can I change it?



Steve Garman

unread,
May 17, 2018, 2:03:16 AM5/17/18
to DroidScript
If you want to test how well your app works when targetting api26 you can add a build.json file to your project.

Build the apk and install it on your own device(s) to test.

I do not recommend uploading apps built with the current version of DS and targetting api26 to the Google play store unless you have tested the apk on the oldest and newest versions of Android your app allows.

I currently find that copies of my existing apps, when targetting api26 and run on Oreo need me to go into Android settings for the app and manually authorize some permissions.

While they work fine like that, it is clear there will need to be a way to request permissions are granted by the user from within the apps before they are ready to be published.

The minimum build.json to apply the target would be

{
"manifest": {
"targetSdkVersion": "26"
}
}

davefinney

unread,
May 17, 2018, 9:44:13 AM5/17/18
to DroidScript
Hi Steve,
   My app only needs access to:
GPS
Int SD
and stops screen going off.

It seems that this "Target API" is to allow permissions for the app to access stuff so I'll try adding:
{
"manifest":
{
"targetSdkVersion": "26"
}
}
in the opening function, and see what that does.

Since Google are going to require this on all apps, is there a plan to comply in DS?

Steve Garman

unread,
May 17, 2018, 9:48:36 AM5/17/18
to DroidScript
It's no good putting it in a function.

You need to create a file in the top level of your project called build.json to contain the manifest entry

davefinney

unread,
May 17, 2018, 10:54:18 AM5/17/18
to DroidScript
Hi Steve,
   Are there instructions on how to make the "manifest entry" anywhere?
   I'm clearly going to have to read up on what to do, and the Google linked page made no sense when I read it!
      Dave.

Steve Garman

unread,
May 17, 2018, 11:23:24 AM5/17/18
to DroidScript
Try searching this group for
build.json

Dave

unread,
May 19, 2018, 6:34:45 AM5/19/18
to DroidScript
Hi Guys, we will be dealing with the V26 issue in the next few weeks.  In the mean time just release as normal.

davefinney

unread,
May 23, 2018, 12:22:00 PM5/23/18
to DroidScript
Excellent, I'll look out for the V26 fix.

Thanks.

ds expert A1

unread,
Jul 22, 2018, 11:57:06 AM7/22/18
to DroidScript
how to join other group and get new version with level required 

JAUREGUI

unread,
Aug 19, 2018, 9:31:16 PM8/19/18
to DroidScript
I have an app ready to publish but when I tried I got the same message, I just found this post about this issue, I checked DroidScript app and Apk plugin in play store but seems to be updated.
Is any update comming? Or if someone have solved this issue already I will appreciate your help. Thanks in advanse... (sorry for my english)

Steve Garman

unread,
Aug 20, 2018, 1:06:50 AM8/20/18
to DroidScript
@JAUREGUI

There's a beta version available that targets api26 by default and deals with most of the changes.

Google Play is happy with the test apps I have posted.

If you need to post a new app on Play, I would recommend testing the apk on different devices first but more apps than not seem to be working with the beta.

I have sent you an invitation in case you want to join the beta group.

For anyone else who is not a member of the beta group you can ask to join by sending an email request to sup...@droidscript.org
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages