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

[亡魂溺海] 提交于 2020-01-04 07:51:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!