Gradle sync failed access is denied in android studio

后端 未结 9 2155
南旧
南旧 2021-01-02 11:09

Can someone please explain to me what this error is and how to resolve this error?

Gradle sync failed: D:\\SoundsandPictures.gradle\\4.4\\fileHashes\\

9条回答
  •  别那么骄傲
    2021-01-02 11:54

    OK.. To solve this issue, simple navigate to your project folder like C:\Users\AndroidStudioProjects\Project.gradle\taskArtifacts folder and delete the file. The fileHashes.lock is holding a global lock and is preventing you from running your script. Deleting the folder would create the file again and your project will get built. Also there is a possibility that there are other locked files. Simply delete everything within the C:\Users\Administrator.gradle\caches folder.

提交回复
热议问题