Ionic 2应用程序更新 - 权限模型降级

时间:2018-02-22 01:57:30

标签: android ionic2

当我将我的应用更新上传到Play商店时,它会给我这个警告:

Permission model downgrade

PROBLEM
Users that have the APK with version code 1201, which targets SDK 23 or higher, will receive an error when they attempt to upgrade to this APK because it targets SDK 22.

RESOLUTION
Ensure that your release includes APKs targeting SDK 23 or higher to which all users that have the APK with version code 1201 can upgrade.
My old version has a target SDK of 24.

我已将android-targetSdkVersion设置为config.xml中的26并且运行ionic cordova build android --release成功但在构建过程中的某处,Gradle会覆盖Android Manifest中的目标SDK值并设置它到22岁。

如果让gradle将目标SDK值设置为24或更高,我需要做什么?

以下是我的离子信息结果:

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:

cordova (Cordova CLI) : 8.0.0 
local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2
System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2 
Node              : v6.9.2
npm               : 4.0.5 
OS                : macOS High Sierra
Xcode             : Xcode 9.2 Build version 9C40b 
Environment Variables:

ANDROID_HOME : /Users/esthonwood/Library/Android/sdk
Misc:

backend : pro

1 个答案:

答案 0 :(得分:0)

对我来说也是如此......似乎Google希望保护在其设备上安装SK版本16的APP的现有用户...

我已经失去了超过18个小时试图弄清楚要做什么,但我一无所获。

我发现的最重要的事情就是发布APP(隐藏)并重新开始创建新应用程序的整个过程...因为我丢失了创建新APP所需的所有图形资料,所以我感到非常震惊。 ..

GOOGLE FU * CK YOU