gpt4 book ai didi

java - Android 包签名不匹配

转载 作者:行者123 更新时间:2023-12-01 06:21:57 26 4
gpt4 key购买 nike

我刚刚在 Android Studio 3.2.1 中导入了一个项目并同步成功。导入的项目正在使用

android {
compileSdkVersion 27
defaultConfig {

minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

现在我根据28更改了版本

android {
compileSdkVersion 28
defaultConfig {

minSdkVersion 14
targetSdkVersion 28
versionCode 2
versionName "2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

所以我已经在我的智能手机中安装了应用程序。当我尝试安装时,它给出消息“包签名与以前安装的版本不匹配”。最重要的是,我无法卸载该应用程序,我只需要更新它。我应该怎么做才能使其正常工作?

最佳答案

When you sign an APK, the signing tool attaches the public-key certificate to the APK—the same is true when signing an app bundle. The public-key certificate serves as a "fingerprint" that uniquely associates the APK or app bundle to you and your corresponding private key. This helps Android ensure that any future updates to your app are authentic and come from the original author. The key used to create this certificate is called the app signing key.

A keystore is a binary file that contains one or more private keys.

Every app must use the same certificate throughout its lifespan in order for users to be able to install new versions as updates to the app.

了解更多详情:Sign your app

关于java - Android 包签名不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52961808/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com