【发布时间】:2017-12-05 19:10:24
【问题描述】:
我正在使用 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 中?
【问题讨论】:
-
您必须使用与初始构建相同的密钥库文件。
-
您不仅需要更改版本名称,还需要更改版本代码
标签: android google-play android-studio-3.0