android - 如何在 Meteor 中升级我的 android 目标 API
问题描述
我正在用 Meteor/Cordova 构建一个 android 应用程序。我的流星目前是 1.5 版本,Cordova 4.3.0。我的默认构建使用 API 25,但是当我尝试将我的 APK 提交到 Play 商店时,我收到以下消息:
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. Change your app's target API level to at least 26
.
如何升级到 API 级别 26?
解决方案
在 mobile-config.js 里面添加
App.setPreference('android-targetSdkVersion', '26');
推荐阅读
- javascript - 如何将元素推入 Mongoose 中另一个数组内的对象内的数组中?
- r - 为 geom_point 添加一个图例,覆盖在 geom_boxplot 上
- jquery - 单击嵌入视频时隐藏元素
- azure-devops - 有没有办法从 AzureDevOps 源中获取与特定出处信息(如 Build.Number)匹配的所有包和版本?
- php - 如何将 wordpress meta_query 中的子字段用于 wp 查询参数?
- reactjs - 在 SWR 上禁用预取
- sql - “'maxprice' 附近的语法不正确。”
- python - Python 2.7 ZIP 存档在作为 HTTP 响应发送时损坏
- python - 在 python 中将 MP3 转换为 WAV
- php - 如何从同一页面上的 HTML 表单接收结果