【发布时间】:2020-01-05 13:39:50
【问题描述】:
所以,我使用 Flutter 工作得很好,甚至在 Playstore 上发布了 2 个应用程序,但突然之间,我无法运行任何新的 Flutter 项目。
我得到的错误是访问被拒绝。旧项目运行良好。
FAILURE:构建失败并出现异常。
* What went wrong:
Could not update C:\Users\Dell\.gradle\caches\4.10.2\file-changes\last-build.bin
> C:\Users\Dell\.gradle\caches\4.10.2\file-changes\last-build.bin (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 1s
Command: C:\Users\Dell\Desktop\errr\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
【问题讨论】:
-
您是否对您的计算机进行了任何与管理权限相关的更改?
-
我不记得有这样的事情。虽然我看不到我的用户\戴尔是 C 存储。 Flutter 在 Users\Dell\flutter 文件夹中,我必须在 C 中搜索它才能得到它。它不是自动出现的
-
尝试运行flutter build clean
-
然后尝试再次运行您的 Flutter 应用。
-
不,同样的错误:(
标签: android gradle flutter android-gradle-plugin build.gradle