Linux Tutorials

How to install Android Studio on Ubuntu Linux

Android Studio is a full-featured and cross-platform integrated development environment (IDE) that helps you build applications for Google’s Android operating system. It is available for Windows, Linux and macOS. However, in this tutorial, we will focus on the installation of Android Studio in Ubuntu Linux. It is based on JetBrains’ IntelliJ IDEA. Android Studio includes everything that a developer needs for any Android App development.

Android Studio build system has been powered by Gradle. Gradle allows you creating multiple build variants for different devices from a single project.

This tutorial can be applied to all versions of Ubuntu-based distributions including Ubuntu 16.04, Ubuntu 18.04, Linux Mint, etc.

System Requirements

  • 1280 x 800 minimum screen resolution.
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator.

Prerequisites

In order to proceed with this tutorial, you will need to create a user account with sudo rights.

Installing Java OpenJDK

Android Studio requires installing Java Development Kit. In Ubuntu, you can install Oracle Java or OpenJDK version 8 or above. In this tutorial, you will install OpenJDK. To do so, follow the steps below:

Step 1:

Run the command below to update your Ubuntu system package before installation:

# sudo apt update

Step 2:

Execute the following command to start the installation of OpenJDK 8 package:

# sudo apt install openjdk-8-jdk

But if you are interested in Java Oracle instead of OpenJDK, you can execute the command below:

# sudo apt install default-jdk

Step 3:

After successful completion of the installation process, confirm your installation by executing the command for testing Java version:

# java -version

You will see the output as given below.

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)

Installing Android Studio:

The simplest and easiest way to install Android Studio is by using snappy packaging. Currently, Android Studio 3.3.1.0 is a stable version. However, if you find the latest stable version, you can install it. To download and install Android Studio snap package, run the following command in your Linux terminal.

# sudo snap install android-studio --classic

After successful completion of installation, you will see the following output.

android-studio 3.3.1.0 from Snapcrafters installed

Starting Android Studio on Ubuntu:

Android Studio can be started in two ways, by using terminal or by double-clicking icon. In the terminal, you can type the following command:

# android-studio

On desktop, you can navigate to Activities, locate Android Studio and click the Android Studio icon.

When you will start for the first time, you will see a window asking you to Complete Installation as shown below.

Click on Do not import settings option and click OK.

Now Android Studio Setup Wizard will start. You will be asked to choose the type of setup. Click Standard and click Next.

Now after successful completion of installation. Android Studio will be loaded and you will see the welcome screen as shown below.

Conclusion:

Congratulations…!! Here you go…you have successfully installed Android Studio on your Ubuntu Linux. Now you can develop Android applications. To start with Android applications, you can see the video tutorials for beginners.

Arslan ud Din Shafiq

Alibaba Cloud MVP, Alibaba Cloud Technical Author, Dzone MVB, Software Engineer, Software Developer, Software Designer, Web Engineer, Web Developer, Web Designer, Database Designer, Database Developer, Cloud Computing Specialist, Linux Expert, Servers, 3D Modeling, Blogger, Facebook Map Editor, Google Map Editor

Recent Posts

I have 20 years of experience in computer security advancement. What I can recommend to regular PC users

If you are living in a digital world you must know how to protect your…

4 years ago

Software Development Life Cycle Model (SDLC)

Software Development Life Cycle Model, also known as SDLC or Software Development Process, is base…

4 years ago

How to Install Go Lang on CentOS 8

Go, often referred to as golang is a modern open-source programming language created by Google…

4 years ago

SE Ranking in [2020]. What is SEO in marketing?

Torque published an article on October 18, 2016, about WordPress statistics. According to this article,…

4 years ago

PostgreSQL Version via Command Line & SQL Shell

PostgreSQL, often known simply as Postgres, is an open-source general-purpose object-relational database management system. In…

4 years ago

Google SEO: 15 Best ways about how can I do SEO for Free?

SEO is free as well as paid. To achieve SE ranking, money is not enough.…

5 years ago