[英]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.