Volver

Android Studio: how to completely uninstall it on OSX

We recently had a problem in the office with Android Studio on a MacBook Pro. It had a problem during an update and since then it has been giving plugin errors and several other errors. We tried to delete it and then install it again, but it did nothing and the same problems showed up again.

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

You just have to execute these commands from the terminal:

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/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 *.keystore. note: this folder is used by others Android IDE 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*

After performing these operations we will have removed Android Studio completely from the system and we would be able to reinstall it again.

Leave a Reply

Your email address will not be published. Required fields are marked *