Gradle项目同步失败,出现AccessDeniedException

时间:2018-06-02 15:35:22

标签: java android-studio gradle

每当我启动Android Studio时,我都遇到过这个问题。我会收到一条通知,说明Gradle项目同步失败'。错误代码如下:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/####/AndroidStudioProjects/TEST/app/build.gradle' 
line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> java.nio.file.AccessDeniedException: /Users/####/.android/build-ca 
che.lock

* 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

CONFIGURE FAILED in 0s
/Users/####/.android/build-cache.lock

我尝试了几种解决方案但没有解决问题。有什么建议吗?

0 个答案:

没有答案