58

I installed Android studio some time ago using the following suggested method:

To set up Android Studio on Linux:

Unpack the downloaded Tar file, android-studio-ide--linux.zip, into an appropriate location for your applications. To launch Android Studio, navigate to the android-studio/bin/ directory in a terminal and execute studio.sh. You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory. Follow the links to install the SDK outside of the Android Studio directories.

For whatever reason it has become corrupt and insists I must un-install and re-install. I can't for the life of me find how to un-install it however.

I didn't use apt-get so I can't do apt-get remove.

Does anyone have any suggestions?

esarkis
  • 125
James
  • 707
  • 1
  • 5
  • 8

9 Answers9

97

These are default locations as of Android Studio 1.0.2 and it is possible to change them by editing ..../android-studio/bin/idea.properties.

  1. Delete the android-studio folder;
  2. Delete the sdk folder if it is in not inside the android-studio directory;
  3. Delete ~/.AndroidStudio, which contains config and system;
  4. Delete ~/.android;
  5. Delete ~/.local/share/applications/jetbrains-android-studio.desktop, if you created a shortcut using Configure->Create Desktop Entry.

Note: Add on to step#5 above - Sometimes the icon launcher can be in one of the following locations to:

/usr/share/applications
/usr/local/share/applications

If your launcher file is in any of the first two directories, you will require root permissions to remove it.

PPAs
A deeper step of removing Android Studio completely from your Linux Distribution would also include the removal of PPAs related to Android Studio.

In Ubuntu 16.04,

  • Go to Software and Updates > Other Software
  • Scroll down the list and select to find the ones related to Android-studio
  • Click remove and authenticate

This helps stopping updates and the very annoying error message:
The package has not been installed. I can't find the archive for it.

abu_bua
  • 10,783
Daniel
  • 3,980
  • 4
  • 29
  • 36
  • 1
    @NikolayBaranenko: If you only use Gradle with Android Studio I suppose it's safe to delete ~/.gradle as well. – Daniel Sep 23 '18 at 14:13
  • 1
    Adding to the answer you might need to remove env variables ` export ANDROID_HOME=$HOME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools

    `

    – Talha Junaid Aug 16 '19 at 09:41
  • in my case, there is another directory: /usr/local/android-studio Just a warning: be very careful when trying to remove this directory using the terminal. Avoid accidentally removing any other directory. – qamnott May 12 '21 at 15:48
  • You mean that a simple uninstall is not the case. Sounds clumsy,. – Jeroen van Langen Jan 28 '22 at 00:32