2 Ways to Install Android Studio in Ubuntu 16.04 and Ubuntu 17.10

Android Studio is the official IDE for Android. It’s open-source, distributed under the Apache license. This tutorial is going to show you how to install Android Studio on Ubuntu 16.04 and Ubuntu 17.10 using two methods: PPA and Ubuntu make. They are both very easy.

Install Java 8 on Ubuntu 16.04, Ubuntu 17.10

No matter which method you choose, you first need to install Java. It’s recommended to install Oracle Java, because it has a performance edge over OpenJDK. Run the following commands in terminal to install it from PPA.

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install java-common oracle-java8-installer

During the installation process you will need to accept the Oracle License agreement. Once installed we need to set Java environment variables such as JAVA_HOME on Ubuntu 16.04/17.10.

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

source /etc/profile

The above two commands will set the correct Java environment variables.

Installing Android Studio in Ubuntu 16.04, 17.10 via PPA

At the time of this writting, the latest stable version is Android Studio 2.3.1, release on April 2, 2017. Run the following commands to add Android Studio PPA and install it.

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

sudo apt update

sudo apt install android-studio

android studio ppa

During the installation, the latest Android Studio zip file will be downloaded from Google server. Once the installation is finished, you can open Android Studio from Unity Dash or your preferred app launcher.

android studio ubuntu

If the icon didn’t load, then please log out and log back in or use the following command to start Android Studio.


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

ubuntu android studio

If you encounter the error “unable to access Android SDK add-on list”, then you will need to set up a proxy.

unable to access android sdk add-on list

Then follow the setup wizard. You will prompted to install Android SDK Tools, Android platform tools, Android support library, etc.

android studio ubuntu 16.04

Installing Android Studio in Ubuntu 16.04/17.10 Using Ubuntu Make

You can easily install the latest version of Android Studio via Ubuntu make, which is a command line tool that allows you to download the latest version of popular developer tools.

Install Ubuntu make from PPA

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

sudo apt update 

sudo apt install ubuntu-make

Then install Android Studio using Ubuntu make.

umake android --accept-license

umake will download and install all required component like latest android SDK, Android platform tools, etc. It will also create a desktop icon.

That’s it! I hope this tutorial helped you install Android Studio in Ubuntu 16.04/17.10 using command line with PPA or Ubuntu Make.

Rate this tutorial
[Total: 110 Average: 4.1]

6 Responses to “2 Ways to Install Android Studio in Ubuntu 16.04 and Ubuntu 17.10

  • Salomo Silaban
    3 years ago

    When i’m create virtual device, I have a problem like “Installation did not complete successfuly. See the IDE log for details”
    I’m using Ubuntu 16.04.2 lts
    how to fix it..?
    This is a screenshot. https://uploads.disquscdn.com/images/43f4b3cd28d0105a80c54f5c17ba860c77c249318f9461002a6b235ffb50b08d.png

  • WallaceJackson
    3 years ago

    How do you install Android Studio 3.0?

  • How do you get the icon to display as an application. right now even after using the path given it stills opens as a folder.

  • So I Installed everything and during the Building app getting erro “Unsuported operating System”
    Linux Ubuntu 16.04 32bit
    any help ?

  • grantiago
    6 months ago

    in 2019 oracle changed the java license. the above ppa is dead. sorry.

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded.