Guide on how to install Android Studio on Ubuntu 18.04 – Android Studio is a full featured cross-platform IDE that helps you build apps on every type of Android device. It is based on JetBrains IntelliJ IDEA and includes everything you need for Android development.
The Android Studio build system powered by Gradle allows you to build multiple build variants for different devices from a single project. So for those of you who like to create and develop applications for Android, it is mandatory for you to install Android Studio on your Ubuntu operating system.
This guide describes how to install Android Studio on Ubuntu 18.04. The same instructions apply for Ubuntu 16.04 and linux distro other Ubuntu-based, including Kubuntu, Linux Mint, and Elementary OS.
You must be logged in as a user with sudo access to be able to install Android Studio packages on your Ubuntu system. Read → How to Create a Sudo User and a Sudo Group on Ubuntu.
How to Install Java OpenJDK
Android Studio requires OpenJDK version 8 or higher to be installed on your Ubuntu system.
I’m going to install OpenJDK 8. The installation is quite simple, starting by updating or updating the package index:
$ sudo apt update
Install the OpenJDK 8 package by typing:
$ sudo apt install openjdk-8-jdk
Verify the installation by typing the following command which will print the Java version:
$ java -version
The output will look like this:
Output openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
How to Install Android Studio
At the time of writing this article, the latest stable version of Android Studio is version 188.8.131.52. The easiest way is to install Android Studio on Ubuntu 18.04 is to use snappy packaging system.
To download and install the Android Studio snap package, open your terminal using
Ctrl + Alt + T keyboard shortcut and type:
$ sudo snap install android-studio --classic
After the installation is complete, you will see the following output:
Output android-studio 184.108.40.206 from Snapcrafters installed
And now Android Studio has finished installing on your Ubuntu desktop
Getting Started with Android Studio
You can start Android Studio either by typing
android-studio in your terminal or by clicking the Android Studio icon in (
Activities -> Android Studio).
When you start Android Studio for the first time, a window like the following will appear asking you to import Android Studio settings from a previous installation:
After you click the button OK, the Setup Wizard window will appear. Click on the button “NextTo initiate the initial configuration and post-installation steps.
Next, you will be asked to select the type of setup you want for Android studio. Most likely you want to select the option “Standard“.
In the next step you can select the UI Theme and the Setup Wizard will download and install the required SDK components. The process may take some time, depending on the speed of your internet connection.
Once the Android Studio IDE loads, you will be presented with a Welcome page:
You have learned how to install Android Studio on your Ubuntu 18.04 desktop. You can now explore your new IDE and start working on your Android project.
To find more information on how to develop applications using Android Studio, visit the official Android Studio documentation page here.
And that’s a guide on how to install Android Studio on Ubuntu 18.04 and on other Ubuntu linux distros. Hopefully this article is useful and happy developing android applications on Ubuntu.