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)
First copy the scripts folder (Which is shown in the studio)
C:\Users\[User name]\.gradle\caches\2.10\scripts
to some other placethen Delete all cache.properties.lock files from your
C:\Users\[User name]\.gradle\caches\2.10\scripts
(Which file is shown in studio)For every deletion Rebuild Project (
Build -> Rebuild Project
) if the studio showing the error in other properties.lock file means delete those all and rebuild projectAfter this you may get error like
No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'
then include
and synch (This option is at top of the build.graddle)
Look for a cache.properties.lock file, delete it and rebuild project
It is very simple just goto file > invalidiate caches/restart > pop-up will open then click on "invalidiate and restart" button
There is probably something wrong with your cached dependencies:
Try to rebuild your project:
I've already tried simply to delete gradle folder. then restarted Android Studio and the problem solved