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

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

问题描述

<块引用>

警告您的应用目前针对 API 级别 25,并且必须针对最低 API 级别 26,以确保它建立在经过优化的最新 API 之上为了安全和性能.

从 2018 年 8 月起,新应用必须至少面向 Android 8.0(API 级别26).从 2018 年 11 月起,应用更新必须针对 Android 8.0(API26级).

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

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

我应该怎么做,忽略这个或修复以及如何解决?

谢谢.

解决方案

你可以更新你的cordova-android到7.0.0,因为那个版本使用SDK 26作为目标,或者你可以更新到cordova-android 7.1.4,因为它以 SDK 27 为目标.

您可以通过删除平台并再次添加它来指定要使用的版本,如下所示:(如果不使用 ionic,请从两个命令中删除 ionic 词)

ionic cordova platform rm android离子cordova平台添加android@7.1.4

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

然后运行 ​​ionic cordova prepare

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.

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

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

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?

Thanks.

解决方案

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.

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

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"/>

And then run ionic cordova prepare

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

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