Search code examples
xmlactionscript-3sdkgoogle-playflash-cs6

How to change your app's target API using flash CS6


I tried uploading APK to google play but get this error:

Your app currently targets API level 21 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 26

How would one change the API level in Flash CS6?


Solution

  • To specify an Android target SDK for your Adobe AIR Android application you need to add the uses-sdk node to your manifest additions in your application descriptor.

    You can add any of the values below. Normally we specify a target and a minimum version in our applications (however you can also add a maxSdkVersion option if you need it).

    <android>
        <manifestAdditions><![CDATA[
            <manifest android:installLocation="auto">
    
                <uses-sdk 
                    android:minSdkVersion="19"
                    android:targetSdkVersion="26" />
    
                <!-- OTHER MANIFEST ADDITIONS -->
    
             </manifest>
        ]]></manifestAdditions>
    </android>