如何使用Flash CS6更改应用程序的目标API [英] How to change your app's target API using flash CS6

查看:142
本文介绍了如何使用Flash CS6更改应用程序的目标API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将APK上传到Google Play,但出现此错误:

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

您的应用当前以API级别21为目标,并且必须至少以API级别26为目标,以确保其基于针对安全性和性能进行了优化的最新API构建.将您应用的目标API级别更改为至少26

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

如何更改Flash CS6中的API级别?

How would one change the API level in Flash CS6?

推荐答案

要为Adobe AIR Android应用程序指定Android目标SDK,您需要在应用程序描述符中的清单添加项中添加uses-sdk节点.

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.

您可以添加以下任何值.通常,我们在应用程序中指定目标和最低版本(但是,如果需要,您还可以添加maxSdkVersion选项).

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>

这篇关于如何使用Flash CS6更改应用程序的目标API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆