Error in Android Studio cache.properties

14,041

Solution 1

I've already tried simply to delete gradle folder. then restarted Android Studio and the problem solved

Solution 2

Look for a cache.properties.lock file, delete it and rebuild project

Solution 3

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

To fix this problem go to :

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

Delete folders \2.4 and \2.8

introducir la descripción de la imagen aquí

Restart Android Studio y Sync project with Gradle Files!.

Solution 4

There is probably something wrong with your cached dependencies:

Try to rebuild your project:

gradle clean build --refresh-dependencies

Solution 5

There is very easy solution for this problem just goto File in the menu bar and say Invalidate Cache and Restart it will be all right..

I hope this might solve your problem because it worked for me.

Share:
14,041
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin about 2 years

    Error:java.io.FileNotFoundException: C:\Users\Petrusic\AndroidStudioProjects\askramarnovi.gradle\2.2.1\taskArtifacts\cache.properties (The system cannot find the file specified)

    C:\Users\Petrusic\AndroidStudioProjects\askramarnovi.gradle\2.2.1\taskArtifacts\cache.properties (The system cannot find the file specified)