You do not need to reinstall Android Studio or do not need to delete the entire .gradle folder.
I reinstalled the latest version of Android Studio and still ran into this problem. This made me rename the Android Projects folder on my desktop in my case.
The only thing you need to do:
1-Go to C: \ Users \ user_name.gradle \ caches \ 2.4 or (2.8 if the error otherwise)
2-Copy the folder “2.4” or “2.8” and paste it somewhere in a safe place, if something went wrong, you put it back
3-Delete this error folder from the C: \ Users \ user.gradle \ caches \ 2.4 \ (or \ 2.8) directory
4 - Close Android studio and restart it.
During the reboot, it syncs your project, and Android Studio will generate new cached files.
It worked for me, I hope it works for you ... :)
user5780741 Jan 12 '16 at 19:33 2016-01-12 19:33
source share