Gradle cache is located at

  • On Windows: %USERPROFILE%\.gradle\caches
  • On Mac / UNIX: ~/.gradle/caches/

You can browse to these directory and manually delete it or run

rm -r $HOME/.gradle/caches/

on UNIX system. Run this command will also force to download dependencies.


Clear the Android build cache of current project

NOTE: Android Studio’s File > Invalidate Caches / Restart doesn’t clear the Android build cache, so you’ll have to clean it separately.

On Windows:

gradlew cleanBuildCache

On Mac or UNIX:

./gradlew cleanBuildCache


This article Put your Android Studio on a diet gives more details on Android Studio caches