Android & Kotlin

How to Install Android Studio on Ubuntu?

Pinterest LinkedIn Tumblr

Welcome guys, In this tutorial I’m going to explain, How to install Android Studio in Ubuntu? And I will demonstrate how to create the virtual device and run the device on Linux. To install Android Studio on Ubuntu, You have to proceed as follows

Install Android Studio in Ubuntu Step

  • Install JDK
  • Download Android Studio Linux Package
  • Install Android Studio
  • Install SDK Platforms
  • Create a Virtual Device

Let’s follow these step and configure Android Studio for development.

Install Android Studio Video Demonstration

1. Install JDK

First I have to install JDK (Java Development Kit), It should to min 6 or later, Today Java 8 is more suitable for Android App Development. Let’s move to the terminal and run follows commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

To verifying installation run below command

javac -version

2. Download Android Studio Linux Package

2.1 Download Android Studio Linux Package

Now go to the developer android ( and download Linux package of Android Studio.

2.2 Unpack the zip in /opt directory

While download will be completed then Unpack the .zip file in the /opt/ directory.

2.3 Launch the Android Studio

Let’s move to terminal and navigate /opt/android-studio/bin/ directory, and execute

2.4 Android Studio Setup Wizard

After executing android studio wizard will open, select do not import settings and click ok. The go-to rest of setup which includes downloading necessary SDK components that are essential for development.

2.5 Install Required libraries for 64-bit

In 64-bit machine you have to install some 32-bit libraries, so go to terminal and run following command

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

If you are running 64-bit Fedora than run

sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
2.5 Create Desktop Entry

To create a desktop icon for future launching Android Studio, Go to menubar and select Tools=> Create Desktop Entry

3 . Install SDK Platforms

Before jumping to building apps, You need to install some SDK, Click on SDK manager Select the latest API (to test against target build, e.g API 28 and some need full packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.

Install Android Studio on Ubuntu

4. Create a Virtual Device

For creating virtual device , got to menu bar and click AVD manager.

4.1 One mini pop up window appear click create new virtual device
4.2 Select skin and device category, In this demo we are taking Nexus skin and phone category
4.3 Now select system images for AVD, if an image is downloaded than well otherwise download image that target SDK you required.
4.4 Finally, enter device and click on finish.
4.5 Now one AVD will created, So just click start button, your AVD is up and running.

Install Android Studio on Window

Install Android Studio on Mac

If you have any queries, feel free to ask them in the comment section below. Happy Coding 🙂

Write A Comment