Android Studio provides the fastest tools to build apps for every type of Android device. World-class code editing, debugging, performance tooling, a flexible build system, and an instant build/deploy system all allow you to focus on building unique and high-quality apps.

In this article, we will explain how to install the Android Studio on your Ubuntu through the Snap Store.

We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system.

Installing the Pre-Requisites

Before installing the Android Studio, you need to have a workable version of Java installed on your system. Android development and working with applications in all done in Java, so let us install it through our Ubuntu command line as follows:

Open the Terminal application either through the application launcher search or the Ctrl+Alt+T shortcut.

In order to install the latest available version of the software from the Internet repositories, your local repository index needs to be in line with them. Run the following command as sudo in order to update your local repository index:

$ sudo apt-get update

Please run the following command as sudo in order to install Java from the APT repositories:

$ sudo apt install openjdk-8-jre openjdk-8-jdk

Please note that only an authorized user can add, remove and configure software on Ubuntu.

Install OpenJDK

The system might ask you the password for sudo and also provide you with a Y/n option to continue the installation. Enter Y and then hit enter; Java will then be installed on your system. The process may, however, take some time depending on your Internet speed.

Installing the Android Studio

For a person who does not want to open the Command Line much, installing software through the UI is very simple. Although Android Studio is not available in the Ubuntu Bionic Universe repository, it is available in the Snap Store and can be installed both through the UI and the command line.

Please follow these steps in order to install Android Studio using the Ubuntu Software Manager:

On your Ubuntu desktop Activities toolbar/dock, click the Ubuntu Software icon.

Open Ubuntu Software Center

Click the search icon and enter Android Studio in the search bar. The search results will list the relevant entries as follows:

Search for Android Studio

The Android Studio entry listed here at the bottom is the one maintained by the Snap Store. This snap is maintained by the Snapcrafters community and is not necessarily endorsed or officially maintained by the upstream developers. Click on this search entry to open the following view:

Install Android Studio Snap

Click the Install button to begin the installation process. The following authentication dialog will appear for you to provide your authentication details.

Authenticate as admin

Please note that only an authorized user can add/remove and configure software on Ubuntu. Enter your password and click the Authenticate button. After that, the installation process will begin, displaying a progress bar as follows:

Installing Android Studio

Android Studio will then be installed on your system and you will get the following message after a successful installation:

Launch the software

Through the above dialog, you can choose to directly launch the Android Studio and even Remove it immediately for whatever reason.

Tip: You can install the same version of the software, from the Snap store, through the command line by entering the following command as sudo in your Terminal application:

$ sudo snap install android-studio

Launch Android Studio

You can access the Android studio from the Ubuntu application launcher bar as follows, or directly access it from the applications listing:

Android Studio Icon

You can also launch it through the command line by entering the following command:

$ android-studio

When you launch it for the first time, the following dialog will appear:

Complete installation

Mostly, you should be using the Do not import settings option. Click OK; the Data Sharing dialog will then appear:

I’d rather select the Don’t send option here.

This will launch the Android Studio Setup wizard which is pretty much self explanatory: Select install type

The Wizard will also install some additional packages that might take a long time. Be a little patient and the following view will appear, suggesting the end of the Setup process.

Emulator settings

Click Finish and you are ready to use the Android Studio.

This is how you could easily install a stable version of Android Studio on your Ubuntu!

How to Install Android Studio IDE on Ubuntu 18.04 LTS

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.