如何为 google Play 商店签署我的 Flutter 应用程序?
How do I sign my flutter app for google play store?
我今天去构建我的应用程序的新版本,但因签名错误而停止:
您的 Android App Bundle 使用错误的密钥签名。确保您的 App Bundle 使用正确的签名密钥签名并尝试 again: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)
您应该找到 *.jks
文件和密钥 + 密钥库密码,用于上传最新版本的应用程序包或 apk。可能它们存储在您的 git 中,密码可能存储在 build.gradle
中(不安全的选项,但有人这样做)。这个密钥库文件和密码非常重要。你应该在安全的地方备份。
如果您丢失了密钥库文件,请尝试联系 Google Play 支持上传新的密钥库文件证书。另一个极端的选择是从 Google Play 中删除该应用程序并使用新的密钥库创建一个新应用程序。
我今天去构建我的应用程序的新版本,但因签名错误而停止:
您的 Android App Bundle 使用错误的密钥签名。确保您的 App Bundle 使用正确的签名密钥签名并尝试 again: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)
您应该找到 *.jks
文件和密钥 + 密钥库密码,用于上传最新版本的应用程序包或 apk。可能它们存储在您的 git 中,密码可能存储在 build.gradle
中(不安全的选项,但有人这样做)。这个密钥库文件和密码非常重要。你应该在安全的地方备份。
如果您丢失了密钥库文件,请尝试联系 Google Play 支持上传新的密钥库文件证书。另一个极端的选择是从 Google Play 中删除该应用程序并使用新的密钥库创建一个新应用程序。