【发布时间】:2022-01-18 17:39:13
【问题描述】:
我不确定如何将我的电容器 Android 项目更新为面向 SDK v30。
每次我做rm -rf ./android && ionic capacitor copy android
并编辑build.gradle和variables.grade进行设置
compileSdkVersion = 30
targetSdkVersion = 30
在 Play 商店中上传 apk 失败
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.
我敢打赌我只需要以某种方式更新电容器或使用标志运行它,但只是哪一个?
【问题讨论】:
-
安装最新电容:
npm install @capacitor/core。然后安装最新的android:npm install @capacitor/android然后添加androidnpx cap add android。
标签: android ionic-framework capacitor ionic5