WARNING: ONLY DO THIS AT YOUR OWN RISK
Steps for Linux-based distros:
- Close
Android Studio
. Ensure that no Gradle daemon instance is running - Determine the location of your Gradle home directory. On Linux, this is typically
$HOME/.gradle
- Temporarily move your transforms directories to a backup directory:
mkdir /tmp/gradle-caches
mv $HOME/.gradle/caches/transforms* /tmp/gradle-caches/
- Move
file-access.bin
file (typically under journal-1):mv $HOME/.gradle/caches/journal-1/file-access.bin /tmp/gradle-caches/
- Start
Android Studio
and build your project. If everything works fine, delete/tmp/gradle-caches