Android PlayStore警告您的应用当前针对API级别25 [英] Android PlayStore warning your app currently targets API level 25

查看:417
本文介绍了Android PlayStore警告您的应用当前针对API级别25的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

警告您的应用当前定位到API级别25,并且必须定位在 至少API级别26,以确保它建立在优化的最新API之上 为了安全和性能.

Warnings 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.

从2018年8月开始,新应用必须至少针对Android 8.0(API级别) 26).从2018年11月开始,应用程序更新必须针对Android 8.0(API 26级).

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).

提示:更改应用程序的目标API级别.了解如何.

Tip: Change your app's target API level. Learn how.

我正在使用Cordova和Ionic 3. 刚刚使用以下代码构建了应用程序:ionic cordova build android --release-prod

I am using Cordova and Ionic 3. Just built the app using: ionic cordova build android --release-prod

我该怎么办,请忽略此问题或解决问题,以及如何解决?

What should I do, ignore this or fix and how?

谢谢.

推荐答案

您可以将cordova-android更新到7.0.0,因为这是使用SDK 26作为目标的版本,或者您可以更新到cordova-android 7.1.4 ,因为它针对的是SDK 27.

You can update your cordova-android to 7.0.0 as that's the version that uses SDK 26 as target, or you can update to cordova-android 7.1.4, as it targets SDK 27.

您可以通过删除平台并再次添加以指定要使用的版本来做到这一点:(如果不使用ionic,请从两个命令中删除ionic单词)

You can do it by removing the platform and adding it again specifying the version to use like this: (if not using ionic, remove the ionic word from both commands)

ionic cordova platform rm android
ionic cordova platform add android@7.1.4

如果您不希望或无法更新,则可以尝试在config.xml中使用此首选项设置目标SDK.

If you don't want or can't update, you can try to set the target SDK with this preference in the config.xml

<preference name="android-targetSdkVersion" value="26"/>

然后运行ionic cordova prepare

这篇关于Android PlayStore警告您的应用当前针对API级别25的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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