繁体   English   中英

尝试运行 flutter 运行的 android 应用程序时出错

[英]Getting error while trying to run android app by flutter run

突然,我在尝试运行使用 flutter 和 dart 创建的应用程序时开始收到此错误。 我是 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

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

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

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

并做一个flutter clean

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM