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.
In order to proceed with this tutorial, you will need to create a user account with sudo rights.
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)
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
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.
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.
If you are living in a digital world you must know how to protect your…
Software Development Life Cycle Model, also known as SDLC or Software Development Process, is base…
Go, often referred to as golang is a modern open-source programming language created by Google…
Torque published an article on October 18, 2016, about WordPress statistics. According to this article,…
PostgreSQL, often known simply as Postgres, is an open-source general-purpose object-relational database management system. In…
SEO is free as well as paid. To achieve SE ranking, money is not enough.…