I copied my project folder for wiping my hard drive and now, trying to import in Android Studio I get this error on buildgradle
Error:Could not add entry '2095793483774087535' to cache fileSnapshots.bin (/home/ivan/Forotek/.gradle/1.10/taskArtifacts/fileSnapshots.bin).
Corrupted IndexBlock 6198 found in cache '/home/ivan/Forotek/.gradle/1.10/taskArtifacts/fileSnapshots.bin'.
I tried importing in Windows, Mac & Linux, I get the same error always
I just had this happen to me. Deleted the ".gradle" directory and then did a "Sync Project with Gradle Files". Once I did that, I was able to successfully build the project again.
open terminal in android studio and type this command and rebuild your project it will 100% work
Note: -this command will only work with mac or linux machines
rm -R .gradle
In case of windows you can find similar command to delete the directory forcefully and it works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With