ClearDisk
Buy for $10Download ClearDiskDownload
A LITTLE MORE CLARITY

Android Studio disk space on Mac

Android Studio disk space on Mac is mostly the SDK in ~/Library/Android/sdk, emulator AVDs in ~/.android/avd, and the Gradle cache in ~/.gradle. Remove unused SDK system images in SDK Manager and wipe or delete emulators in Device Manager rather than Finder.

1. Measure the three big folders

Android’s documentation gives ~/Library/Android/sdk as the default SDK location on macOS; SDK Manager shows the actual path at the top of its window if you chose another. Virtual devices live in ~/.android/avd unless ANDROID_AVD_HOME points elsewhere, and Gradle, which builds every Android project, keeps its cache in ~/.gradle.

Measure all three with du before changing anything. Inside the SDK, the system-images, platforms and ndk folders are the usual large ones; inside avd, each device has its own folder.

du -sh ~/Library/Android/sdk/* | sort -h
du -sh ~/.android/avd/* | sort -h
du -sh ~/.gradle

2. Remove old SDK packages in SDK Manager

Open Tools → SDK Manager. The SDK Platforms tab lists Android versions with their system images, the files the emulator boots; the SDK Tools tab lists build tools, the emulator, the NDK and similar. Turn on Show Package Details to see individual versions. Clear the checkbox next to a package you no longer need and click Apply; packages marked for removal show a red X until you confirm.

Keep the platform your projects compile against and the system images your current virtual devices use. Old NDK and build-tools versions are good candidates if no project’s build files name them. Anything removed can be installed again from the same window, at the cost of a download. Android’s documentation says to choose Intel or ARM system images to match your Mac’s processor, so images for the other architecture, often left over from an older Mac, are candidates too.

3. Wipe or delete emulators in Device Manager

Open View → Tool Windows → Device Manager, or More Actions → Virtual Device Manager from the welcome screen. Each virtual device has a menu with Wipe Data, Delete and Show on Disk. Android’s documentation describes a device’s storage as holding its user data, such as installed apps and settings, and an emulated SD card, and Quick Boot keeps a saved state as well.

Wipe Data returns a device to new and keeps it in the list; Delete removes it. Either loses test accounts, app data and files inside the emulator, so copy out anything you need first. The system image a device used stays in the SDK after the device is deleted; remove it in SDK Manager if no other device uses it.

4. Clear Gradle and old Android Studio folders

The Gradle cache is shared by every Android project on the Mac and is often the largest single item. The Gradle guide explains how to stop the daemons and clear it; quit Android Studio first, since it runs its own daemons.

Each Android Studio version keeps settings in ~/Library/Application Support/Google/AndroidStudio followed by the version, with matching cache and log folders. Android’s documentation says the first run of a new major version looks for folders from versions that are no longer installed and offers a Delete Unused Android Studio Directories dialog with their sizes. Accept it for versions you have removed. Android Studio is built on the IntelliJ platform, so Invalidate Caches works as in the JetBrains guide.

What not to delete

Do not delete ~/.android as a whole. Besides the avd folder it holds debug.keystore, the key that signs your debug builds; losing it changes your debug signature, which breaks API keys or sign-in setups registered against it until you register the new one.

Avoid removing the whole SDK folder while projects depend on it, and skip Finder for anything SDK Manager or Device Manager can remove. ClearDisk’s Developer Junk list includes the Gradle cache, not the Android SDK or emulator devices, so those stay a decision you make in Android Studio.

Common questions

Should I delete emulator devices in Finder to save space?

No, use Device Manager instead. Wipe Data returns a device to new while keeping it in the list, and Delete removes it entirely; either loses test accounts, app data and files inside the emulator.

Is it safe to delete the whole ~/.android folder?

No. Besides the avd folder, it holds debug.keystore, the key that signs your debug builds. Losing it changes your debug signature, which breaks API keys or sign-in setups registered against it until you re-register.

Which SDK packages are safe to remove in Android Studio?

Old NDK and build-tools versions no project's build files name, and system images for the processor architecture your Mac doesn't use, are good candidates. Keep the platform your projects compile against and images your current devices use.

Why does Android Studio offer to delete old version directories?

On the first run of a new major version, it looks for folders left by versions no longer installed and offers a Delete Unused Android Studio Directories dialog showing their sizes, which you can accept.

References & further reading

These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.

Main guide: developer storage on Mac · Related pillar: clear Xcode Derived Data on Mac · Browse all Developer storage guides →

FROM A NUMBER TO AN ANSWER

See what’s using
your space.

Explore your Mac with ClearDisk’s free local scanner.
Review the files. Keep the control.

Download free scannermacOS 15+ · version 2.2.1Cleanup license: $10 once