Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall Android Studio and the Android SDK?

I tried to install Android Studio and it ended up taking up all of my free disk space. How do I uninstall it? The application reports it uses 400MB and /user/me/Library/Android directory reports 8GB. Can I delete these two directories? I would like to try and start fresh.

I'm on Mac OSX Mavericks.

Update:
I was following the instructions here,

enter image description here

This says, "Android Studio provides everything you need to start developing apps for Android".

The next page says, "By default, the Android SDK does not include everything you need to start developing." WTF? Which one is it?

enter image description here

So following the instructions on that page it says add these items: enter image description here

I selected the items it recommended and noticed some items it mentions where already installed while others were not (the icon on the far right of it's name).

I clicked the minimal amount to install and clicked next. Half way through the download I start getting Low disk space warnings. Next I get Android out of space errors. So I cancel and look back at the application directory and that's at 400MB. I then remember from somewhere that it said something would be installed in /Library/Android. I check that directory and it's 7.4GB.

like image 816
1.21 gigawatts Avatar asked Jan 02 '15 02:01

1.21 gigawatts


People also ask

How do I uninstall Android SDK platform?

Now the deletion of SDKs can be done in Settings > Appearance & Behaviour > System Settings > Android SDK.

How do I uninstall platform tools in Windows 10?

Select Start , then select Settings > Apps > Apps & features. Select the app you want to remove, and then select Uninstall.


1 Answers

Most likely, you can just prune the sdk directories.

On Mac OSX Yosemite, my android sdk folder was taking 18 GB two minutes ago. Now, it's just 3.19 GB (not including Android Studio), after having deleted the packages I'm not currently using.

From Android Studio, select Tools > Android > SDK Manager.

Keep the tools. Keep the latest android sdk (currently at api level 21). That means, inside the folder api level 21; keep "SDK Platform", keep the "x86 emulator image for 64 bit", delete the "intel x86 emulator image for 32 bit", keep the "Samples for SDK", keep "Documentation for Android SDK", and keep "Sources for Android SDK"

For the "Google APIs", only keep that if you plan to use the google maps api, or some other google apis. Most likely, you can just delete that one as well, and download it again should you ever need it.

But do delete the package for "ARM emulator image" and all the other packages for the other api levels. Android is backwards-compatible, so targeting the latest SDK does not require additional SDKs even if your minimum SDK is very low.

From the extra folder section: Keep the "Intel x86 Accelerator (HAXM installer)", keep the "Android support repository" and keep the "Android support library". You can delete the "Google Repository" (although, I've personally kept that one, so you'll probably end up with even less than 3.19 GB once you delete it).

And if you still need even more space, I guess you could even remove the "SDK Samples" and the "Sources of Android SDK" (not that I'd recommend doing that. Do it only if you really need the space). After all, if Windows Phone and iPhone developers can survive without having access to the source code of their platforms, there is no reason most of us couldn't survive without the source code to our platform either.

like image 151
Stephan Branczyk Avatar answered Sep 24 '22 15:09

Stephan Branczyk