Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to completely uninstall Android Studio on Mac?

I recently downloaded Android Studio on my Macbook Pro and I messed up with it every time I open it. It gives me plugin errors and several other errors. I need to uninstall it completely from my mac. I tried to delete it from my mac and then install it again as if you would do the first time, but it did nothing and now the same problems occur.

How can I manage to remove it completely and install a fresh one again?

like image 797
Mostafa Addam Avatar asked Jul 12 '13 23:07

Mostafa Addam


People also ask

How do I completely uninstall an app on Mac?

Press and hold the Option (⌥) key, or click and hold any app until the apps jiggle. Click Delete button next to the app that you want to delete, then click Delete to confirm. The app is deleted immediately. Apps that don't show either didn't come from the App Store or are required by your Mac.

Can I delete Android Studio Installer?

Go to control panel. Open programs and features. Find android studio and uninstall it.


1 Answers

Execute these commands in the terminal (excluding the lines with hashtags - they're comments):

# Deletes the Android Studio application # Note that this may be different depending on what you named the application as, or whether you downloaded the preview version rm -Rf /Applications/Android\ Studio.app # Delete All Android Studio related preferences # The asterisk here should target all folders/files beginning with the string before it rm -Rf ~/Library/Preferences/AndroidStudio* rm -Rf ~/Library/Preferences/Google/AndroidStudio* # Deletes the Android Studio's plist file rm -Rf ~/Library/Preferences/com.google.android.* # Deletes the Android Emulator's plist file rm -Rf ~/Library/Preferences/com.android.* # Deletes mainly plugins (or at least according to what mine (Edric) contains) rm -Rf ~/Library/Application\ Support/AndroidStudio* rm -Rf ~/Library/Application\ Support/Google/AndroidStudio* # Deletes all logs that Android Studio outputs rm -Rf ~/Library/Logs/AndroidStudio* rm -Rf ~/Library/Logs/Google/AndroidStudio* # Deletes Android Studio's caches rm -Rf ~/Library/Caches/AndroidStudio* # Deletes older versions of Android Studio rm -Rf ~/.AndroidStudio* 

If you would like to delete all projects:

rm -Rf ~/AndroidStudioProjects 

To remove gradle related files (caches & wrapper)

rm -Rf ~/.gradle 

Use the below command to delete all Android Virtual Devices(AVDs) and keystores.

Note: This folder is used by other Android IDEs as well, so if you still using other IDE you may not want to delete this folder)

rm -Rf ~/.android 

To delete Android SDK tools

rm -Rf ~/Library/Android* 

Emulator Console Auth Token

rm -Rf ~/.emulator_console_auth_token 

Thanks to those who commented/improved on this answer!


Notes

  1. The flags for rm are case-sensitive1 (as with most other commands), which means that the f flag must be in lower case. However, the r flag can also be capitalised.
  2. The flags for rm can be either combined together or separated. They don't have to be combined.

What the flags indicate

  1. The r flag indicates that the rm command should-

    attempt to remove the file hierarchy rooted in each file argument. - DESCRIPTION section on the manpage for rm (See man rm for more info)

  2. The f flag indicates that the rm command should-

    attempt to remove the files without prompting for confirmation, regardless of the file's permissions. - DESCRIPTION section on the manpage for rm (See man rm for more info)

like image 108
Simon Avatar answered Sep 21 '22 07:09

Simon