Android API Level 26 required as of August 2018

J. Landman Gay jacque at hyperactivesw.com
Fri May 18 21:17:32 CEST 2018


Answering myself, the target version is already included in the Android 
manifest that LC uses by default. It is set to be the same as the 
minimum version. We can edit that to use a different number. Make a copy 
of the default manifest, located at:
<Your LC app>/Contents/Tools/Runtime/Android/Manifest.xml

Change this:
<uses-sdk android:minSdkVersion="${MIN_SDK_VERSION}" 
android:targetSdkVersion="${MIN_SDK_VERSION}"/>

To this:
<uses-sdk android:minSdkVersion="${MIN_SDK_VERSION}" 
android:targetSdkVersion=26/>

Then include the revised manifest in the Copy Files pane of the 
standalone settings. In LC versions prior to LC 9 it will replace the 
default one when you do a build. In LC 9, the standalone builder now 
merges your manifest with the default template.

I'm not entirely clear how the merging works, but it sounds like you 
could create a manifest with only the changes you want to implement. For 
now I'll just edit the template and assume LC will find which edits to 
include. If anyone knows for sure, I'd like to hear how it works exactly.


On 5/18/18 1:42 PM, J. Landman Gay via use-livecode wrote:
> I brought this up on the list a while ago. The target version is 
> different from the minimum version I think, and there's no way to 
> specify a target in standalone settings. I think we'll need to create 
> our own manifest that includes the target. I'll have to look up how to 
> do that, I'm not sure yet what to include.
> 
> This will affect me too, since I need to upload to the Play Store in a 
> couple of days.
> 
> On 5/18/18 12:45 PM, bob--- via use-livecode wrote:
>> I posted an APK to the Google Play Store today for another project I 
>> work on (not LC based) and received a warning that I've not seen 
>> before (1 week ago the same App not receive this warning).
>>
>> "Target API level requirements from August 2018
>> Warning:
>> Your app currently targets API level 25 and must target at least API 
>> level 26 to ensure it is built on the latest APIs optimized for 
>> security and performance.
>>
>>> From August 2018, new apps must target at least Android 8.0 (API 
>>> level 26).
>>> From November 2018, app updates must target Android 8.0 (API level 26).
>> Tip:
>> Change your app's target API level. Learn how."
>>
>> Some months ago I attempted to build for Android on LC I ran into 
>> problems until I used an older version of either the API???/ SDK??? 
>> (not sure what right now). I'm posting this here just as an FYI and to 
>> see if anyone might now if this is something we need to worry about in 
>> the LC space.
>>
>> I didn't want to open a QC report until someone can confirm/deny this 
>> is an issue or not.
>>
>> Thanks in advance,
>> Bob Hall
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> 
> 


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list