[英]Android - App not installed as package conflicts with an existing package
My application is published in Google Play store.我的应用程序已在 Google Play 商店中发布。 Some of the users were unable to install the app due to below error.由于以下错误,一些用户无法安装该应用程序。
I've asked the user to install the APK manually but he got the below error.我已要求用户手动安装 APK,但他收到以下错误。
App not installed as package conflicts with an existing package应用程序未安装为 package 与现有 package 冲突
Can someone advice me what's wrong on my app?有人可以建议我的应用程序有什么问题吗?
You need to provide an APK that has a higher versionCode
and is signed with the same key as the play store version.您需要提供具有更高versionCode
并使用与 Play 商店版本相同的密钥签名的 APK。
If you enabled Google Play App Signing and did not upload your own signing key, then you are unable to provide your own APKs as app updates to your users.如果您启用了 Google Play App Signing 并且没有上传您自己的签名密钥,那么您将无法将您自己的 APK 作为应用更新提供给您的用户。 In that case all you have is an "upload key" while google has the actuall signing key which is used to finally sign the app.在这种情况下,您所拥有的只是一个“上传密钥”,而谷歌拥有用于最终签署应用程序的实际签名密钥。
This will lead to the problem that you provide an APK with the same package ID but with a different signing key.这将导致您提供具有相同 package ID 但具有不同签名密钥的 APK 的问题。 In that case, Android will refuse to install the app due to a duplicate package ID conflict.在这种情况下,Android 将由于重复的 package ID 冲突而拒绝安装该应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.