[英]how to change my app's target API level from 29 to 30 in ionic android
Created an ionic android app with the Cordova plugin.使用 Cordova 插件创建了一个离子 android 应用程序。 When tried to upload the generated apk file to the play store, got an error:
尝试将生成的 apk 文件上传到 play store 时,出现错误:
"Your app currently targets API level 29 and must target at least API level 30 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 30".
“您的应用当前针对 API 级别 29,并且必须至少针对 API 级别 30,以确保其构建在针对安全性和性能优化的最新 API 之上。将您的应用的目标 ZDB974238714CA8DE6434A7CE1D3803A 级别更改为至少。”
Corrected and uploaded the apk, next time while trying to upload the newly generated apk got the same error, Is any persistent solution for it??更正并上传了apk,下次尝试上传新生成的apk时遇到同样的错误,有什么持久的解决方案吗?
Corrected in config.xml, do I need to change anywhere else?在 config.xml 中更正,我需要在其他任何地方进行更改吗?
ionic version: 5.4.16
离子版本:5.4.16
cordova version: 11.0.0cordova 版本:11.0.0
Update your Cordova CLI to version 11, then it will download cordova-android 10.x when you run cordova platform add android
that already target SDK 30 by default. Update your Cordova CLI to version 11, then it will download cordova-android 10.x when you run
cordova platform add android
that already target SDK 30 by default. If you already have a cordova-android platform, you'll have to remove it first and also remove whitelist plugin as it's not integrated into the platform如果您已经有一个 cordova-android 平台,则必须先将其删除并删除白名单插件,因为它没有集成到平台中
cordova platform rm android
cordova plugin rm cordova-plugin-whitelist
cordova platform add android
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.