gpt4 book ai didi

java - 重新安装 Windows 后 Flutter 构建失败

转载 作者:行者123 更新时间:2023-12-01 18:05:36 26 4
gpt4 key购买 nike

我重新安装了 Windows 和 AndroidStudio,现在我的项目出现此构建错误。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
> java.nio.file.AccessDeniedException: E:<theprojectpath>\build\app\intermediates\signing_config\debug\out\signing-config.json

* 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 1s
Finished with error: Gradle task assembleDebug failed with exit code 1

最佳答案

好的,我已经解决了:

  1. 删除 .android 文件夹中的构建缓存和缓存文件夹。通常位于此处 C:\Users\用户名\.android

  2. 删除 flutter 项目文件夹中的 build 文件夹。(...)\flutter_project_name\build

关于java - 重新安装 Windows 后 Flutter 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60564800/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com