Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle error in android studio: Could not create parent directory for lock file

Gradle Error : Could not create parent directory for lock file.

Could not create parent directory for lock file D:\PROGRAM FILES\ANDROID\jbr\wrapper\dists\gradle-7.5-bin\f1w0cc9nuo0eivz97x2xlu9sv\gradle-7.5-bin.zip.lck

While building or syncing my app, the Gradle shows this error.

Please help me with this error.

like image 975
Harshit Sah Avatar asked Dec 06 '25 04:12

Harshit Sah


1 Answers

Make your Gradle User Home to be empty Make your Gradle User Home to be empty

Then restart Android Studio and sync. Gradle error will be gone.

like image 141
joelkanyi Avatar answered Dec 07 '25 18:12

joelkanyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!