[英]java.io.FileNotFoundException along with Gradle error while downloading artifacts
我不太确定是签名配置的问题。json文件或gradle 问题或两者兼而有之。
我正在开发的测试应用程序一直运行良好,直到昨晚,当我尝试再次运行该应用程序时,它给出了错误
错误:
Launching lib\main.dart on RNE L21 in debug mode...
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: C:\Users\r\Desktop\exampleapp\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 27s
Running Gradle task 'assembleDebug'...
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
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: C:\Users\r\Desktop\exampleapp\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 28s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
互联网连接稳定,从昨晚开始我没有更改应用程序中的任何内容,所以有人可以指出这可能是什么原因
制作 minSdkVersion 21 我希望这将是您在应用程序级别 build.gradel 文件中的问题的解决方案
minSdkVersion 21
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.