问题
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?
回答1:
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>
回答2:
First download the SDK version you wish to use from adobe.com, then extract the sdk zip somewhere, and finally select Help > Manage AIR SDK... from Flash CS6, and click plus icon to add a new sdk path.
来源:https://stackoverflow.com/questions/51699483/how-to-change-your-apps-target-api-using-flash-cs6