Skip to content

Instantly share code, notes, and snippets.

@apelsocz
Created November 29, 2017 18:19
Show Gist options
  • Select an option

  • Save apelsocz/a0c77bc54d46a36ea714e0f484f0e187 to your computer and use it in GitHub Desktop.

Select an option

Save apelsocz/a0c77bc54d46a36ea714e0f484f0e187 to your computer and use it in GitHub Desktop.
Android Studio - Uninstall
https://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio
----------------------------------------------------------------
Execute these commands from the terminal
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
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 *.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*
----------------------------------------------------------------
thanks for commenting and improving this answer: @Eron Villarreal @randallmeadows @Christoph Zenger @Shan Xeeshi
https://gradle.org/install/
----------------------------------------------------------------
sudo nano /etc/paths
-> find any gradle mentions and rm -rf those respectively
-> /usr/local/gradle/gradle-4.0/bin
rm -Rf /usr/local/gradle/
----------------------------------------------------------------
1. echo $PATH and copy it's value
-> /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/gradle/gradle-4.0/bin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin:/Applications/Wireshark.app/Contents/MacOS
export PATH=""
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment