How to Install Android Studio IDE for Linux on Ubuntu 16.04 | 18.04 | 18.10

Android Studio for Linux is an open source IDE and developer tools built by Google to develop apps for Android phones, tablets and other android devices. It probably the fastest way for building apps on every kind of Android devices. and this brief tutorial shows students and new users how to install it on Ubuntu 16.04 | 18.04 and 18.10 systems.

If you’re going to be developing Android apps for Android devices, then you may probably want to do it using Android Studio IDE. If works across multiple platforms including, Windows, Mac OS and Linux.

Android Studio features include, code editing, debugging, performance tooling, a flexible build system, and an instant build/deploy and automation which allows you to focus on building great apps.

For more about Android Studio, please visit its homepage.

Installing the program on Linux, including Ubuntu is very easy. and the steps below show you how.There are two options, (probably more) to installing Android Studio on Ubuntu. either options should work fine.

To get started with installing Android Studio for Linux on Ubuntu, follow the steps below:

Option 1: Installing Android Studio via Google Repository

Installing Android Studio via Google repository is the default method. What you do is, download the installer and use it to download all required components for Android Studio. To download and install Android Studio via Google repository, go to link below to download the zipped file for Linux systems.

Before downloading, you should first install OpenJDK 8 on Ubuntu.  Run the commands below to install Open JDK 8.

sudo apt update
sudo apt install openjdk-8-jdk

After that, go to the link below to download it.

When you download using your browser, it should probably be downloaded in the Downloads folder of your home directory.

If you want to use the command line, the run the commands below to download into the /tmp directory. Remember, at the time of this writing, this ( ) was the latest version. The link might change when a new version is released.

wget -P /tmp

Next, run the commands below to extract the downloaded file to the /opt directory.

sudo unzip -d /opt /tmp/

Finally, run the commands below to initiate the installation wizard.

sh /opt/android-studio/bin/

That should start up the installation wizard. If this is a new installation, choose not to import settings.

Then click Next to continue with the installation wizard.

android studio install ubuntu

After that, choose the Standard installation and continue. If you’re an advanced user, choose custom and continue.

android studio

Next, choose the theme you wish to use and continue.

Android studio

Finally, click Finish to begin the downloading and installation all packages. this should take a while depending on your internet connection.

android studio ubuntu

If you select the Custom installation, you’ll choose where to install Android Sdk.

Android Studio SDK

After a while, Android Studio should be installed and ready to use. the default home directory should be in your home folder or as defined above.

Android Studio

To configure Android Studio environment variables on Ubuntu, run the commands below:

gedit ~/.bashrc

Then copy and paste these lines below at the top of the file and save. Replace the highlighed text with your own name or account name.

export ANDROID_HOME=/home/richard/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Save the file.

Option #2: Install Android Studio via Snap

Another way to get Android Studio installed is via Snap package management. Snaps are containerised software packages that are simple to create and install. They are applications packaged with all their dependencies to run on all popular Linux distributions from a single build which allow them to update automatically and roll back gracefully….

This might be the easiest way to get Android Studio on Linux systems, including Ubuntu. To install, run the commands below install Snap.

sudo apt update
sudo apt install snapd

Then run the commands below to get Android Studio installed via Snap.

sudo snap install android-studio --classic

When you first launch the app, it will download and install all require packages to get Android Studio working on Ubuntu. Follow the same wizard as above to complete the installation.

You may also like the post below: