Cache.properties (The system cannot find the file specified)

I just started using Android Studio 1.3 sdk 24 and it has worked fine until today. I get this error message about cache.properties and I delete that cache file but now I am getting this error message:

Error:C:\Users\user1.gradle\caches\2.4\scripts\asLocalRepo15_dhjxrnvsgiyg1ow3dfj4myl7\InitScript\initscript\cache.properties (The system cannot find the file specified)

I try file/invalidate caches/restart.. and rebuild project but am still getting this error message. How do I fix it?


You don't have to delete all .gradle folders and no need to reinstall Android Studio.

I have the latest version of Android Studio and I faced that problem, the only thing that worked for me is to:

  1. Navigate to C:\Users\user\.gradle\caches\2.x\

  2. Copy the folder scripts , scripts-remapped and paste it somewhere safe just in case anything went wrong you will place it back

  3. Delete this folder scripts and scripts-remapped from the directory C:\Users\user\.gradle\caches\2.x\

  4. Sync Project with Gradle Files and you are done.

enter image description here

When you sync your project Android Studio will generate new cache files.

You also need to delete buildOutputCleanup.lock from projectLocation/.gradle/buildOutputCleanup in case the above 4 steps do not work out.

It worked for me I hope it will work for you.


Reinstall Android Studio again is not an option!

To fix the problem:

cache.properties (The system cannot find the file specified)

go to :

 C:\Users\[User]\.gradle\caches\

Delete folders \2.4 and \2.8

introducir la descripción de la imagen aquí

Restart Android Studio!.


You don't have to reinstall Android Studio or no need to delete all .gradle folder.

I am reinstalled the latest version of Android Studio and still I faced that problem. It caused my to rename the "Android Projects" folder on my desktop in my case.

The only thing that you have to do:

1-Navigate to C:\Users\user_name.gradle\caches\2.4 or (2.8 if error in it otherwise)

2-Copy the folder "2.4" or "2.8" and paste it somewhere safe just in case anything went wrong you will place it back

3-Delete this error folder from the directory C:\Users\user.gradle\caches\2.4\ (or \2.8)

4-Close the Android studio & restart it.

During restart it sync your project & Android Studio will generate new cache files.

It worked for me I hope it will work for you... :)


I have the same problem, I just delete .gradle from C:\Users\user\.gradle\caches\2.4\ and from my application too.

Of course close Android Studio and start Android Studio again.


No need to reinstall anything.

Just delete the 2.4 and 2.8 folder located at C:\Users\user\.gradle\cachesdirectory and reopen android studio. It will generate new cash files so now the build should be successful.