If you're encountering the following error during build in Android Studio:
This usually indicates corrupted Gradle cache files.
How to Fix:
Step 1: Open the Terminal in Android Studio (or use Command Prompt).
Step 2: Navigate to the Gradle directory:
cd C:\Users\<YourUsername>\.gradle\
Step 3: Remove the corrupted caches folder:
bash
rm -r caches\
On Windows, if using Command Prompt instead of terminal, use:
c
rmdir /s /q caches
Step 4: Go back to Android Studio and click Build > Clean Project or Rebuild Project.
This should resolve the issue and allow your project to build successfully.
Comments
Post a Comment