Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle\2.10\taskArtifacts\cache.properties.lock (Access is denied) in Android studio

Tags:

android

Can someone please explain to me what this error means and how to resolve this cache.properties.lock error in android studio ??

Error:java.io.FileNotFoundException: C:\Users\lrana\AndroidStudioProjects\Umachi.gradle\2.10\taskArtifacts\cache.properties.lock (Access is denied)

C:\Users\lrana\AndroidStudioProjects\Umachi.gradle\2.10\taskArtifacts\cache.properties.lock (Access is denied)

like image 734
Lucky Rana Avatar asked Jun 20 '16 10:06

Lucky Rana


2 Answers

had this problem on linux, the problem was that it was root owned.

sudo chown user:user -R ./2.2

in the ./gradle directory solved the problem

like image 115
Magic-Mouse Avatar answered Sep 24 '22 07:09

Magic-Mouse


This sounds like it's related to https://issues.gradle.org/browse/GRADLE-2795.

Try to to delete everything under C:\Users\Administrator.gradle\caches. There is a cache.properties.lock that is holding a global lock which is preventing you from running your script. Using MacOS you will find it in your home directory ~/.gradle/caches

like image 24
Evgeniy Mishustin Avatar answered Sep 23 '22 07:09

Evgeniy Mishustin