简体   繁体   English

APK 版本未从 Play 商店更新已安装的 AAB 应用

[英]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.

相关问题 从 Play 商店更新手动安装的应用 - Update manually installed app from Play Store Android:安装APK后从Play商店重定向到Android应用 - Android: Redirect to android app from play store when apk is installed 为 AAB 上传选择加入 Google Play 应用签名会影响已经从 Play 商店安装 APK 的现有用户吗? - Will opting in for Google Play App signing for AAB upload affect existing users who have already installed APK from playstore? 从 google play 发布 apk 安装/更新应用程序 - Release apk install/update app from google play 是否可以使用与 Play Store AAB 相同的密钥签署 App Center APK? - Is it possible to sign App Center APK's with the same key as Play Store AAB? 从.apk 到.aab 的本地构建版本反应,如何将应用程序发送给客户端? - react native build release from .apk to .aab, how to send the app to the clients? 手动安装的apk(不是来自Play商店)会在更新可用时收到通知吗? - Will apk installed manually (not from play store) receive notification when update becomes available? 无法上传 android app-release.apk 到 Play 商店 - Cannot upload android app-release.apk to play store Play Store reject while upload file.aab 您上传了一个 APK 或 Android App Bundle,其中包含一个活动、活动别名、服务 - Play Store reject while upload file .aab You uploaded an APK or Android App Bundle which has an activity, activity alias, service 通过Google Play更新应用,该应用由APK文件安装 - Update app via Google play, which is installed by APK file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM