How to Install Android Studio IDE for Linux on Ubuntu Linux

screen with web apps
screen with web apps

Android Studio for Linux is an open-source IDE and developer tool built by Google to develop apps for Android phones, tablets, and other android devices.

It is probably the fastest way to build apps on every Android device. 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 developing Android apps for Android devices, you may want to do it using Android Studio IDE. This is because it 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, allowing you to focus on building great apps.

For more about Android Studio, please visit its homepage.

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

Installing Android Studio via Google Repository

Installing Android Studio via Google repository is the default method. So, download the installer and use it to download all required components for Android Studio.

To download and install Android Studio via the Google repository, go to the 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, run the commands below to download it into the /temp directory. Remember, this ( ) was the latest version at the time of this writing. Therefore, 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.

android studio ubuntu

Then click Next to continue with the installation wizard.

android studio install ubuntu

After that, choose the Standard installation and continue. Finally, 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 downloading and installing all packages. this should take a while, depending on your internet connection.

android studio ubuntu

If you select 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 highlighted text with your name or account name.

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

Save the file.

Install Android Studio via Snap

Another way to get Android Studio installed is via Snap package management. Snaps are containerized 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, allowing 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 and 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 launch the app, it will download and install all required 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:

Posted by

I love computers; maybe way too much. What I learned I try to share at

1 Comment

  1. Thank you so much for this article. Is there a way to configure the sdk of android studio on a server computer (as I am unable to access the gui via remmina)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: