簡體   English   中英

執行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 時出錯 -------flutter

[英]A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade -------flutter

我試圖構建一個 appbundle,但出現了這個錯誤。

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文件。 但問題還是一樣。

您簽署 appbundle 時似乎存在問題。 嘗試使用另一個密鑰退出應用程序。

確保不要在源代碼管理中包含密鑰庫文件,因為它存在安全隱患。

請在此處查看此文檔以開始使用。 https://flutter.dev/docs/deployment/android

完成所有這些后,運行以下命令:

flutter clean
flutter build appbundle

如果您在構建應用程序時遇到 treeshaking 問題,請在此處運行此命令:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM