首页 > 解决方案 > 如何在 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?

标签: androidcordovameteorcordova-plugins

解决方案


在 mobile-config.js 里面添加

App.setPreference('android-targetSdkVersion', '26');

推荐阅读