To install it you first will need to download it from here. After you have downloaded it you will have a file called something like "android-studio-ide-143.2915827-linux.zip". You need to unzip this file to be able to use it.
To do this run:
You should now have a directory that looks something like this:
Do this after you have completed all of the other steps as you will have to reconfigure it so it will waste your time otherwise.
Steps to install:
- Locate where your android studio bin folder is located.
- Add this to your PATH variable.
- Rename studio.sh to studio.
First you need to cd to the unzipped android studio folder as shown in the picture earlier on. You then need to cd to the bin folder. You can now rename studio.sh to studio.
mv studio.sh studio
You can now run the pwd command to get the full location of your directory.
You can now see that the directory is located at "/home/matty/Downloads/android-studio/bin"
We now need to add this path to your PATH variable. We do this so that you can type studio and open up the android studio from the terminal.
export PATH=$PATH:/"YOUR PATH TO THE DIRECTORY"
Note: YOUR PATH TO THE DIRECTORY is what we have just got from the pwd command, this should be added without the quotes for the above command.
You should now be able to type "android" into your terminal and it will open the android studio.