How to Install Android Studio for Linux

Android Robot

Google, Inc.

Android Studio is the premier tool produced by Google for creating Android apps.

01
of 04

Download and Install Android Studio

Screenshot of Download Android Studio for Linux

 Gary Newell

Download Android Studio from the following website:

Install the file according to the standards of your Linux distribution.

This file is the installer only; the full Android Studio suite will download after you run the installer and select your preferred installation options later in the process.

02
of 04

Download the Oracle JDK

Screenshot of Oracle JDK

 Gary Newell

The Oracle Java Development Kit (JDK) may be available in your Linux distribution's package manager.

If it is, install the JDK required by the Android Studio environment using the package manager (i.e. Software Centre, Synaptic etc). If the JDK isn't available in the package manager to go to the following website:

Install the JDK as appropriate, and ensure that it's the default by running the following command:

$sudo update-alternatives --config java

A list of Java versions will appear; enter the number for the option that has the words jdk in it. For example:

/usr/java/jdk1.8.0_92/jre/bin/java
/usr/local/jdk1.8.0_92/jre/bin/java
03
of 04

Run Android Studio

Screenshot of running Android Studio in Linux

 Gary Newell

Run the following command to launch Android Studio:

$sh /opt/android-studio/bin/studio.sh

Change the location if you didn't install Android Studio to /opt.

On your first run, you'll be asked whether you want to import settings and you may be presented with a welcome screen.

04
of 04

Choose An Installation Type

Screenshot of Android Studio for Linux setup wizard

 Gary Newell

The installer will present you with options for downloading and running the Android Studio. Make your selections then click Next.

The next screen shows the list of components that will be downloaded. The download size will likely exceed 600 MB in size.