【发布时间】:2021-05-06 08:12:45
【问题描述】:
我今天去构建我的应用的新版本,但因签名错误而停止:
您的 Android App Bundle 使用错误的密钥进行签名。确保您的 App Bundle 使用正确的签名密钥进行签名,然后重试:SHA1: DF:2F...
我没有在https://flutter.dev/docs/deployment/android 的说明中对我的密钥库或签名过程进行任何更改。我的最后一个生产版本是 2020 年 8 月 29 日,那么我如何判断 Google Play 管理中心是否更改了默认签名流程?我不知道现在有什么不同。
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale en-US)
• Flutter version 1.22.2 at /Users/*/development/flutter
• Framework revision 84f3d28555 (4 months ago), 2020-10-15 16:26:19 -0700
• Engine revision b8752bbfff
• Dart version 2.10.2
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/*/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
【问题讨论】:
-
您的密钥证书(用于上传应用程序包)的哈希值是否与错误所需的 SHA1 匹配?如果没有,那么您使用了错误的密钥来签署您的捆绑包。尝试查找所需的密钥库文件和密码。或联系 Google Play 支持以使用新密钥。
-
@Mol0ko 看起来 key.jks 文件是在我上次发布到现在之间再次生成的。你知道我如何重新开始这个过程吗?这个键和 Google Play Console 有什么关系。我不记得两年前第一次上传该应用时提交过任何相关内容。
标签: android flutter google-play-console android-app-signing