android - 无法通过 faSTLane 使用 Google Play 应用签名将 android 包上传到 Google Play

标签 android google-play code-signing google-play-console fastlane

我们在 Google Play 中发布了一些应用程序,所有应用程序都使用相同的 keystore 进行签名。去年我们切换到应用程序包,启用了 Google Play 签名。手动签名和上传包时一切正常。虽然当我尝试通过 faSTLane 将 bundle 上传到 Google Play 时它给了我一个错误:

Google Api Error: apkNotificationMessageKeyBundleSignedWithWrongKey: The Android App Bundle was signed with the wrong key. Found: SHA1:...., expected: SHA1:......

如果我手动上传相同的 .aab,一切都很好。 我应该怎么办?我想是从 Google Play signing . 我不想破坏任何东西,因为我只是开发人员而不是帐户所有者。我可以在不破坏现有 keystore 的情况下生成新的 keystore 吗?

编辑:在 Google 控制台的 App Signing 选项卡上,我可以下载 upload_cert.der 和 deployment_cert.der

最佳答案

通过 API 或通过 Play 控制台 UI 对签名 key 的验证是相同的,因此您可能不会通过 faSTLane 手动上传相同的文件。

确保使用相同的 keystore 文件(和相同的 key 别名)在 faSTLane 中对 App Bundle 进行签名。

关于android - 无法通过 faSTLane 使用 Google Play 应用签名将 android 包上传到 Google Play,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61747469/

相关文章:

java - Google App Engine Cloud Endpoints userId 为空

java - ksoap2 序列化错误

android - 如何覆盖 backpress 以离开 Activity ?

android - 在线性布局中对齐 ImageView 和 TextView

inno-setup - 为什么需要管理员权限?

android - 为什么我的应用不适用于特定设备

android - Android Market如何安装应用程序?

android - 发现问题 : Invalid Data safety section. 如何解决此问题?

ios - App Store Connect 上传错误 "You haven' 无法访问云管理的分发证书”

ios - 将 iOS 应用程序提交到应用程序商店无效的代码签名权利