我正在使用 Android Studio 并尝试构建签名的 apk。 我正在使用以下步骤构建签名的 apk: 模块-->应用程序 KeyStorePath-->/Users/mshikher/Documents/SchoolCounter/app/Untitled (SchoolCounter 是项目的名称)。 输入 keyStorePassword 和 keyPassword 后单击 NEXT。 单击 V1 和 V2 版本,单击完成。 之前有人在 play.console 中上传了一个 apk,现在如果我尝试将我的 apk 上传到生产版本中,我会收到此错误。
You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint:
[ SHA1: AA:6F:D6:9E:72:B7:9B:C6:45:63:70:69:66:B4:DA:9B:72:6D:3D:23 ]
and the certificate used to sign the APK you uploaded have fingerprint:
[ SHA1: 88:5D:A7:91:A9:5B:2C:66:DD:ED:13:96:37:49:D6:B7:4D:1E:B0:09 ]
You need to use a different version code for your APK because you already have one with version code 1.
我也更改了 build.gradle 文件中的版本号:
versionName "2.0"
我应该怎么做才能将我的 apk 上传到 play.google.com?
最佳答案
当您使用不同的 keystore 签署您的 apk 时,就会发生这种情况。
您需要为您上传到 Playstore 的所有版本使用相同的 keystore 。请使用您用于发布上一个 apk 的相同 keystore 对您的 apk 进行签名。
有关更多信息,请查看此链接:https://developer.android.com/studio/publish/app-signing.html
关于android - 当您上传未使用上传证书签名的 APK 时;你必须使用相同的证书吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47650390/