Android Studio is using too much space on my Mac

Android development spreads across three big folders. Each one can be cleaned on its own.

Measure the three big folders

 Terminal
du -sh ~/.android/avd ~/Library/Android/sdk ~/.gradle 2>/dev/null

1. Emulators (AVDs)

Each virtual device has its own disk image, often several gigabytes. Open Android Studio → Device Manager, then delete devices you do not use, or use Wipe Data to shrink one you keep.

2. SDK system images and platforms

System images are the Android versions emulators boot from. See what is installed and remove old ones:

 Terminal
~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --list_installed
~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --uninstall "system-images;android-30;google_apis;arm64-v8a"

Or use Android Studio → Settings → Languages & Frameworks → Android SDK and untick old versions.

3. Gradle

See the Gradle guide. Caches and old wrapper versions are rebuilt or downloaded again.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac