【问题标题】:Getting error while trying to run android app by flutter run尝试通过flutter run运行android应用程序时出错
【发布时间】:2021-06-26 03:15:15
【问题描述】:

在尝试运行使用颤振和飞镖创建的应用程序时,我突然开始收到此错误。我是android开发的新手。任何帮助表示赞赏。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > java.io.FileNotFoundException: D:\DEVELOPEMENT\Android\flutter_projects\nav_app\build\app\intermediates\signing_config\debug\out\signing-config.json (Access is denied)

* 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 3s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1

【问题讨论】:

    标签: android flutter android-studio gradle


    【解决方案1】:

    删除该位置的文件 D:\DEVELOPEMENT\Android\flutter_projects\nav_app\build\app\intermediates\signing_config\debug\out\signing-config.json

    然后做一个flutter clean。

    【讨论】:

      【解决方案2】:

      这是导致您的错误signing-config.json (Access is denied)

      删除此文件,它应该可以工作,位于 D:\DEVELOPEMENT\Android\flutter_projects\nav_app\build\app\intermediates\signing_config\debug\out\signing-config.json.

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-04-02
        • 1970-01-01
        • 2021-08-29
        • 2017-09-27
        • 1970-01-01
        • 1970-01-01
        • 2017-07-15
        • 2012-12-17
        相关资源
        最近更新 更多