【发布时间】:2021-07-26 10:38:20
【问题描述】:
当我尝试从 Android Studio 签署我的 Flutter 应用程序时,他们给了我一个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key myapp from store "/Volumes/PKData/Project/myapp/android/key.jks": Cannot recover key
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
我遇到了这个问题,在应用了许多解决方案后没有一个解决方案有效,但在我的情况下它现在仍然给出这个错误
关于如何修复它的任何想法以及如何发现密码必须相同?
【问题讨论】:
-
您是否尝试过从 Android Studio 生成签名的 apk?
-
其实我是在android studio做的
-
在 Android Studio 中打开你的 Flutter 项目的 android 文件夹。转到构建 > 生成签名的 apk。希望它会有所帮助。
标签: flutter keystore android-keystore release-apk