Ubuntu: How to install Android Studio on Ubuntu?


Please tell me the full process of installing Android Studio and its necessary dependencies.


Installing Java

sudo add-apt-repository ppa:webupd8team/java  sudo apt-get update  sudo apt-get install oracle-java8-installer  

After that

sudo apt-get install oracle-java8-set-default  

Installing Android Studio

  1. Download Android Studio from here, use All Android Studio Packages

  2. 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  
  3. 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 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  

Installing Android SDK (if necessary)

  1. Click the marked button

    enter image description here

  2. Get the latest SDK tools

    As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:

    1. Open the Tools directory and select:

      • Android SDK Tools
      • Android SDK Platform-tools
      • Android SDK Build-tools (highest version)
    2. Open the first Android X.X folder (the latest version) and select:

      • SDK Platform
      • A system image for the emulator, such as ARM EABI v7a System Image
  3. Get the support library for additional APIs

    The Android Support Library provides an extended set of APIs that are compatible with most versions of Android.

    Open the Extras directory and select:

    • Android Support Repository
    • Android Support Library
  4. Get Google Play services for even more APIs

    To develop with Google APIs, you need the Google Play services package:

    Open the Extras directory and select:

    • Google Repository
    • Google Play services
  5. Install the packages

    Once you've selected all the desired packages, continue to install:

    • Click Install X packages.
    • In the next window, double-click each package name on the left to accept the license agreement for each.
    • Click Install.


@A.B answer is correct and complete. I just add that alternatively you can easily install an up-to-date Android Studio using Canonical's Ubuntu Make.

Installing Ubuntu Make :

For Ubuntu 14.04LTS

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make  sudo apt update  sudo apt install ubuntu-make  

For Ubuntu 15.10 and up

Ubuntu Make is already in official repositories, run :

sudo apt install ubuntu-make  

Note that umake version should be 16.05 to be able to download android studio, check by running

umake --version  

If not, use the Ubuntu 14.04 method to install it.

Installing Android Studio :

umake android  

There may be an error message related to license that may be corrected using an additional parameter:

umake android --accept-license  

Uninstall Android Studio :

umake android --remove  


If you are running a 64-bit version of Ubuntu (16.04), you need to install some 32-bit libraries with the following command:

sudo apt-get install lib32stdc++6  


sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

So that you don't have this error:

Unable to run mksdcard SDK tool.  

For more read this doc


Quoted from http://ubuntuhandbook.org/index.php/2014/11/install-android-studio-ubuntu-14-04-ppa/

Android Studio depends on Java, and Oracle Java 7 or 8 is recommended

sudo add-apt-repository -y ppa:webupd8team/java    sudo apt-get update    sudo apt-get install oracle-java7-installer oracle-java7-set-default  

Add the Android Studio PPA

sudo add-apt-repository ppa:paolorotolo/android-studio  

Then update package lists and install it:

sudo apt-get update    sudo apt-get install android-studio  

Once installed, start the setup wizard from the Unity Dash or just run command



Add the android-studio repository:

sudo apt-add-repository ppa:maarten-fonville/android-studio  sudo apt-get update  

Then install:

sudo apt-get install android-studio  

More information can be found at https://mfonville.github.io/android-studio/


The easiest method to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as zip, try to manually install it, add PPAs or fiddle with Java installation. Ubuntu Make'll automatically download the latest Android Studio, install it along with OpenJDK and all the necessary dependencies and create an app launcher entry in Dash.

Step 1: Install Ubuntu Make

Run this command:

sudo snap install --classic ubuntu-make  

Step 2: Install Android Studio

Run this command:

ubuntu-make.umake android  

Once you accept the license and press enter to confirm installation path, Ubuntu Make'll download and install Android Studio.

Step 3: Install Android SDK

Open the newly installed Android Studio from dash:

Android Studio app on Dash

Don't need to import anything if this is the first time you're installing it:

Import Dialog

The Setup Wizard'll guide you through installation:

Android Studio Setup Wizard

Select Standard install to get the latest SDK and Custom in-case you wanna change the SDK version or it's install location. From here on, it's pretty straightforward, just click next-next and you'll have the SDK downloaded and installed.

Select Standard or Custom installation

Step 4: Setting PATHs (Optional)

This step might be useful if you want Android SDK's developer tool commands like adb, fastboot, aapt, etc available in Terminal. Might be needed by 3rd party dev platforms like React Native, Ionic, Cordova, etc and other tools too. For setting PATHs, edit your ~/.profile file:

gedit ~/.profile  

and then add the following lines to it:

# Android SDK Tools PATH  export ANDROID_HOME=${HOME}/Android/Sdk  export PATH="${ANDROID_HOME}/tools:${PATH}"  export PATH="${ANDROID_HOME}/emulator:${PATH}"  export PATH="${ANDROID_HOME}/platform-tools:${PATH}"  

If you changed SDK location at the end of Step 3, don't forget to change the line export ANDROID_HOME=${HOME}/Android/Sdk accordingly.

Tested on Ubuntu 16.04LTS and above. Would work on 14.04LTS too if you install support for snap packages first. Thanks to Didier "didrocks" Roche for snapping Ubuntu Make. 😊


For ubuntu 16.04, the syntax is as follows.

umake android android-ndk [-h] [-r] [--accept-license] [destdir]  


1- Run to Terminal (Ctrl+Alt+t) and install JDK:

sudo apt-add-repository ppa:webupd8team/java  sudo apt-get update  sudo apt-get install oracle-java8-installer  

to check the java jdk version, type

javac -version  


java -version  

2- Download Full bundled ADK from oficial site, unzip it, open it and follow the instructions in install-Linux-tar.txt.

3- Follow the ADK installation Wizard.


Setting up Android Studio takes just a few clicks. (You should have already downloaded Android Studio.)

To install Android Studio on Linux, proceed as follows:

  1. Unpack the .zip file you downloaded to an appropriate location for your applications, such as within /usr/local/ for your user profile, or /opt/ for shared users.

  2. To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh.

  3. Select whether you want to import previous Android Studio settings or not, then click OK.

  4. The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development.

Tip: To make Android Studio available in your list of applications, select Tools > Create Desktop Entry from the Android Studio menu bar.

Required libraries for 64-bit machines: If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386  

If you are running 64-bit Fedora, the command is:

sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686  

and install jdk[not necessary now, will install automatically]

sudo apt-get install openjdk-9-jdk  

copy of https://developer.android.com/studio/install.html

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »