[英]APK release not update installed AAB app from Play Store
I have installed previous version of my app from Google Play Store.我已经从 Google Play 商店安装了我的应用程序的早期版本。 Now, I make an apk release with the same keystore file with
gradlew assembleRelease
command or with android studio, and try to install it manually in device or with gradlew installRelease
on emulator.现在,我使用
gradlew assembleRelease
命令或 android studio 使用相同的密钥库文件制作了一个 apk 版本,并尝试在设备中手动安装它或使用模拟器上的gradlew installRelease
安装它。 But every time I got App not installed error.但每次我得到应用程序未安装错误。
I got this on LOGCAT:我在 LOGCAT 上得到了这个:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.myapp.myapp signatures do not match previously installed version; ignoring!
I use enableSeparateBuildPerCPUArchitecture
in my gradle file.我在 gradle 文件中使用
enableSeparateBuildPerCPUArchitecture
。 and also I enable v2 signing with these commands in gradle file (in release section of signingConfigs):我还在 gradle 文件中启用了 v2 签名(在signingConfigs 的发布部分):
signingConfigs {
debug {
storeFile file(...)
storePassword ...
keyAlias ...
keyPassword ...
}
release {
storeFile file(...)
storePassword ...
keyAlias ...
keyPassword ...
v1SigningEnabled true
v2SigningEnabled true
}
}
NOTE: Also if I install the previous version of my app manually, the Play Store won't update it.注意:另外,如果我手动安装以前版本的应用程序,Play 商店将不会更新它。
This is the expected behaviour.这是预期的行为。
This is because the keystore signatures don't match, as most likely you have opted in for your signing key to be managed by Google.这是因为密钥库签名不匹配,因为您很可能已选择让 Google 管理您的签名密钥。 You will have to uninstall the previous app before installing the new version if it comes from a different source (Google Play/ Android Studio build).
如果新版本来自不同的来源(Google Play/Android Studio 构建),您必须在安装新版本之前卸载以前的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.