Flutter:无法更新访问被拒绝

时间:2019-09-02 14:01:00

标签: android gradle flutter android-gradle-plugin build.gradle

所以,我在Flutter上工作得很好,甚至在Playstore上发布了2个应用程序,但突然之间,我无法运行任何新的flutter项目。

我得到的错误是访问被拒绝。较早的项目运行正常。

失败:构建失败,并出现异常。

* 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.

1 个答案:

答案 0 :(得分:0)

我将 gradle 版本更改为 7.0.2,它对我有用

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
相关问题