执行com.android.build.gradle.internal.tasks.Workers $ ActionFacade时发生故障------- flutter

时间:2020-10-16 02:30:59

标签: android android-studio flutter android-app-bundle

我试图建立一个附件,但出现此错误。

C:\Users\IMBA\AndroidStudioProjects\quizzi>flutter build appbundle

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Failed to read key key from store "C:\Users\IMBA\AndroidStudioProjects\quizzi\android\app\key.jks": Keystore was tampered with, or password was incorrect

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done                        12.2s
Gradle task bundleRelease failed with exit code 1

该问题第二次出现,所以我制作了一个新的key.jks文件。但是问题仍然存在。

1 个答案:

答案 0 :(得分:0)

您似乎在签署Appbundle时遇到问题。尝试用另一个密钥为应用程序签名。

请确保不要将密钥库文件包含在源代码管理中,因为这样做有安全隐患。

在此处查看此文档以开始使用。 https://flutter.dev/docs/deployment/android

完成所有操作后,运行以下命令:

flutter clean
flutter build appbundle

如果在构建应用程序时遇到树状握手问题,请在此处运行以下命令:

flutter build appbundle --no-tree-shake-icons