Thursday, 22 June 2017

Installing Android Studio

Download Android Studio from here, use All Android Studio Packages

Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip

$ sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt

To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.

You may want to add /opt/android-studio/bin to your PATH environmental
(export PATH=$PATH:/opt/android-studio/bin)
variable so that you can start Android Studio from any directory.

Create a desktop file

Create a new file androidstudio.desktop by running the command:
$ nano ~/.local/share/applications/androidstudio.desktop

and add the lines below

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio