【问题标题】:A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade -------flutter执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障 -------flutter
【发布时间】:2021-01-30 13:26:04
【问题描述】:

我试图构建一个 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文件。但是问题还是一样。

【问题讨论】:

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


    【解决方案1】:

    您签署 appbundle 时似乎存在问题。尝试使用另一个密钥退出应用程序。

    确保不要将密钥库文件包含在源代码管理中,因为它存在安全隐患。

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

    全部完成后,运行以下命令:

    flutter clean
    flutter build appbundle
    

    如果您在构建应用程序时遇到 treeshaking 问题,请在此处运行此命令:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-14
      • 1970-01-01
      • 2022-10-22
      • 2020-06-06
      • 2020-07-05
      • 2021-05-19
      • 2021-04-27
      • 2020-01-24
      相关资源
      最近更新 更多