How can I fix this error? can anyone help me?
Error:java.io.FileNotFoundException:/.../.gradle/2.8/taskArtifacts/cache.properties (No such file or directory)
its my first time to encounter this error in android :3
How can I fix this error? can anyone help me?
Error:java.io.FileNotFoundException:/.../.gradle/2.8/taskArtifacts/cache.properties (No such file or directory)
its my first time to encounter this error in android :3
well I found a solution for my own question and it works perfectly fine
in cmd/terminal enter this process
->cd sampleLocation/projectFolder (locate your project) ->cd .gradle (it will direct you to your Gradle) ->ls (it will display the version of your Gradle i think then) ->cd 2.8 (2.8 is just my example of my Gradle version that displays earlier in ls then enter "ls" again) ->ls (it will display the taskArtifacts then go to taskArtifacts) ->cd taskArtifacts/ (it will direct you to your taskArtifacts then enter "ls" again) ->ls (it will display this "cache.properties.lock fileHashes.bin fileSnapshots.bin outputFileStates.bin askArtifacts.bin" and then enter this "rm cache.properties.lock ") ->rm cache.properties.lock (it will remove the cache and it will create a new cache for your project)
The answer here did lead me to the problem, but a more reasonable approach is to delete the .gradle
in both your $HOME
directory and the project directory.