gra*_*ski 1 android gradle android-studio flutter
我是 flutter 和 android studio 的初学者,当我试图运行一个非常基本的 hello world 程序时,我得到了这个:
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:\flutter\newapp\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 16s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Running Gradle task 'assembleDebug'...
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:\flutter\newapp\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 2s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我试过了,flutter clean但这没有用。我通过 android studio 手动清除了缓存,但也没有用。我终于重新启动了我的机器,这也不起作用。
我不走运和解决方案。任何帮助,将不胜感激。
(运行Windows 10)
小智 5
转到路由D:\flutter\newapp\build\app\intermediates\signing_config\debug\out\并删除文件,signing-config.json然后再次运行。
| 归档时间: |
|
| 查看次数: |
687 次 |
| 最近记录: |