[英]How do I sign my flutter app for google play store?
I went to build a new release of my app today and was stopped with a signing error:我今天去构建我的应用程序的新版本,并因签名错误而停止:
Your Android App Bundle is signed with the wrong key.您的 Android App Bundle 使用错误的密钥签名。 Ensure that your App Bundle is signed with the correct signing key and try again:SHA1: DF:2F...
确保您的 App Bundle 使用正确的签名密钥进行签名,然后重试:SHA1: DF:2F...
I haven't changed anything with my keystore or signing process in the instructions here https://flutter.dev/docs/deployment/android .在https://flutter.dev/docs/deployment/android的说明中,我没有对我的密钥库或签名过程进行任何更改。 My last release to production was Aug 29, 2020, so how can I tell if Google Play Console changed the default signing process?
我的最后一个生产版本是 2020 年 8 月 29 日,那么我如何判断 Google Play 管理中心是否更改了默认签名流程? I'm at a loss about what's different now.
我不知道现在有什么不同。
[✓] 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)
You should find the *.jks
file and key + keystore passwords which you use to upload app bundle or apk for the latest release.您应该找到用于上传最新版本的应用程序包或 apk 的
*.jks
文件和密钥 + 密钥库密码。 May be they were stored in your git, passwords may be in build.gradle
(unsafe options, but someone do that).可能它们存储在您的 git 中,密码可能在
build.gradle
中(不安全的选项,但有人这样做)。 This keystore file and passwords are very important.这个密钥库文件和密码非常重要。 You should make a backup somewhere safe.
您应该在安全的地方进行备份。
If you lost the keystore file, try to contact Google Play support to upload new keystore file certificate.如果您丢失了密钥库文件,请尝试联系 Google Play 支持以上传新的密钥库文件证书。 Another extreme option is to delete the app from Google Play and create a new one with new keystore.
另一个极端的选择是从 Google Play 中删除应用程序并使用新的密钥库创建一个新的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.