Ubuntu – Uninstalling Android Studio

android-studio

I have gone through all of the previous threads, including all of the suggestions in the Completely Uninstall Android Studio thread, about uninstalling Android Studio and followed their directions and nothing helps. I installed Android Studio with the Standard installation but for a tutorial I'm following I need a Custom installation. I tried deleting the /android-studio folder along with the hidden /.android folder in my home directory and then re-extracting the folder from the original .zip file from here however every time I re-run the studio.sh file from my terminal it immediately restarts as was without re-installing. I have tried

sudo apt-get remove android-studio

and it tells me it cannot find the package. I've also tried every possible answer I've found so far including installing ubuntu-make and ppa:purge and nothing works. I can't even search for android studio in my task manager bar. I'm working on Ubuntu 16.04.

Best Answer

For me (gnome-ubuntu 17.04) this got rid of all android-studio installations I could see:

rm ~/.local/share/applications/androidstudio.desktop
sudo rm -rf /opt/androsudoid-studio/
rm -rf ~/.android/
rm -rf ~/.AndroidStudio2.1/
rm -rf ~/.AndroidStudio2.3/
rm -rf ~/Android
sudo rm -rf /opt/android-studio-ide-143.2790544-linux.zip
rm -rf ~/.gradle

Note: for you the build- and version numbers are probably different.

After that I could do a clean re-install and finally got a clean, working android studio.

Related Question