How to Solve Low Disk Space for Android Studio?

AndroidAndroid Studio

Android Problem Overview


I am getting this error randomly and not sure as to why my disk space is getting low for Android Studio..

>Low disk space on a Android Studio system directory partition

Update

This Application is installed on a mac running 10.10.1 w/ 251GB internal storage and an OS restore Drive taking 10GB.

I think the problem is, once the application was installed it was placed on the smaller partition.

I will attempt to remove this application and all files associated to it, and reinstall. Hopefully this will solve the issue.

Android Solutions


Solution 1 - Android

You can install studio and SDK separately into different partitions: http://developer.android.com/sdk/index.html#Other

Or you can move your existing SDK folder anywhere and then just point studio to it in preferences.

Also consider that AVD files are actually stored in your system user folder (user/.android/avd on Windows, not sure where exactly on mac), not in SDK folder.

Solution 2 - Android

I had the same problem, I installed android studio a 128gb partition and togther with JAVA jdk and all sdk related file it consume most of its disk space. I re-install it on a larger partition and it solve my problem.

Solution 3 - Android

I was getting this error and restarting Android Studio and adding more memory did not help. At this point I noticed it was happening across all my emulators in android studio. It turns out that some of the files in the emulators could not be read because they have became corrupt. The simplest solution is usually the best answer so restarting my computer fixed it. Hope this saves someone time!

Solution 4 - Android

Android Studio with SDK Tools,JDK and AVD takes almost 30gb but I believe that it needs a little bit more to work properly.Everything bigger than 40gb it's Ok.It depends on the number of SDK's that you download.If you have 40gb of free disk space you will never have this message.Sometimes crashes or pop messages if you use it a lot of days without reboot your computer make a reboot and everything will be fine.

Solution 5 - Android

I just compressed the drive and there was 25GB of space available now. The problem vanished. Then when i shutted down my PC and restarted it the next day I got an error BOOTMGR compressed. SO i followed this tutorial https://www.youtube.com/watch?v=3tnyhz-CRQU and fixed it and now I still have 25GB space available. It worked for me

Solution 6 - Android

Please open below mention path and delete you all avd's here.

C:\Users{Username}.android\avd

Sometimes, deleting emulator in android studio is not enough to reduce all the spaces grab by these emulator's. So deleting these emulator's from above mention path.

Solution 7 - Android

You can click on your SDK manager then navigate to Appearance settings > systems settings > Android SDK. From here just click on optimize disk space on the top right corner of your window. I was able to clear about 15gb then it worked smoothly.

Solution 8 - Android

I had a same problem and I solved by deleting some unwanted files from my disk.

Reason - The disk space is low which u have android SDK and android studio file.

solution - Delect some files from your disk which has your android sdk and studio.

Solution 9 - Android

If you have facing the issue in low disk space in android studio,just delete the unwanted emulator in your AVD manager.I wasted the whole to try other things.it help full to any one.it working for me.

Solution 10 - Android

It worked only after restarting my MacBook 路‍♂️

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkandroidjView Question on Stackoverflow
Solution 1 - AndroidDmideView Answer on Stackoverflow
Solution 2 - AndroidYohoView Answer on Stackoverflow
Solution 3 - AndroidBrianMizView Answer on Stackoverflow
Solution 4 - AndroidC.GkalfasView Answer on Stackoverflow
Solution 5 - AndroidSagar DevangaView Answer on Stackoverflow
Solution 6 - AndroidNarender GusainView Answer on Stackoverflow
Solution 7 - Androidmwiti muchenaView Answer on Stackoverflow
Solution 8 - AndroidSurendar DView Answer on Stackoverflow
Solution 9 - AndroidS HemaNandhiniView Answer on Stackoverflow
Solution 10 - AndroidCan RauView Answer on Stackoverflow