【问题标题】:Google Play: Upload new APK failed. APK is signed with different certificate to previous APK.Google Play:上传新 APK 失败。 APK 使用与以前的 APK 不同的证书进行签名。
【发布时间】:2015-12-17 07:45:24
【问题描述】:
Upload failed

You uploaded an APK that is signed with a different certificate to your previous APKs.
You must use the same certificate.

Your existing APKs are signed with the certificate(s) with fingerprint(s):
[ SHA1: 33:00:07:BA:2B:DC:9C:29:B0:B9:54:F1:AA:C9:9C:00:6A:D0:93:35 ]

and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
[ SHA1: 60:BB:1D:CA:5F:5A:0B:7C:62:8B:11:CE:88:2D:FC:8F:FA:ED:D6:FD ]

我正在使用相同的密钥库来生成签名的 APK。以前我从 Windows 操作系统生成签名的 APK,但这次是从使用相同密钥存储的 Linux Ubuntu 生成的。

【问题讨论】:

  • 你在 Window 和 Linux 中都使用 Android studio 吗?请确保在 Window 和 Linux 中使用相同的“发布证书”(非调试证书)。
  • 我在 Windows 和 Linux 中都使用 Android Studio。
  • 我已经在发布模式下在 Windows 和 Linux 上签署了我的应用程序。

标签: android google-play apk android-keystore


【解决方案1】:

确保使用相同的文件,而不是通过使用相同的登录名/密码/信息来生成“相同”证书。

您确定使用 Release 键而不是 debug 吗?

【讨论】:

【解决方案2】:

打开您的 gradle 并再次仔细检查您的密钥库密钥

【讨论】:

  • 能否详细说明。由于 gradle 脚本有很多文件,我该如何打开这个 gradle 文件。
  • 这个文件是 build.gradle (Module:app) 并检查signingConfigs
  • 由于某些原因,我的 build.gradle (Module:app) 文件没有 signingConfigs 属性。这是我的样子:
  • 应用插件:'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.iotaconcepts.app_ologize" minSdkVersion 15 targetSdkVersion 21 versionCode 2 versionName "2.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } 依赖项 { compile fileTree(dir: 'libs', include: ['*.jar']) compile ' com.android.support:appcompat-v7:22.2.1' }
  • 您可以查看我的 build.gradle (Module:app) 文件:github.com/prasang7/ReleaseError_Build.GradleFile
最近更新 更多