how to install android studio in ubuntu or command to install android studio in ubuntu
Android Installation

Steps to install Android studio in Ubuntu or command to Install Android Studio in Ubuntu

Below are the steps to install Android Studio in Ubuntu

 

1.How to Enable virtualization in your system

For most computers you can get to the BIOS screen either by hitting Esc key or F2 key right after you hit the power button while turning on the computer. It will redirect you to the BIOS window. Enable virtualization in your system before installing android studio in Ubuntu.

2.Install JDK 8 or later

Before install android studio in Ubuntu, install JDK 8 or later in your system. Check whether your system have latest version of JDK installed or not.  Press Ctrl+Alt+T for taking the terminal in Ubuntu and type the following command for checking the version of java.

 javac -version

how to install android studio in ubuntu or command to install android studio in ubuntu
Java Version Check Command

If the result of java version check command showing ‘Java command is not found in your system’, then  type the following command in the terminal to install JDK in your system.

sudo apt-get update

sudo apt-get install oracle-java8-installer

or 

sudo apt-get install default-jdk

After installing the jdk, check the version you have installed. To make sure, it’s installed successfully; open a terminal by pressing Ctrl+Alt+T and type

javac –version

 

 

how to install android studio in ubuntu or command to install android studio in ubuntu

For more details regarding JDK installation Ubuntu

3.Download and install Android Studio

Download the Android Studio for Linux and extract it somewhere (e.g home directory).

how to install android studio in ubuntu or command to install android studio in ubuntu

Select the android-studio-ide for the linux

how to install android studio in ubuntu or command to install android studio in ubuntu
Tick the check box to continue downloading
how to install android studio in ubuntu or command to install android studio in ubuntu
After downloading the zip file, save it in the home directory of your system
how to install android studio in ubuntu or command to install android studio in ubuntu
Extract the zip file by right click on the zip file you downloaded
how to install android studio in ubuntu or command to install android studio in ubuntu
Android-studio folder in the Home directory
how to install android studio in ubuntu or command to install android studio in ubuntu
Double click on the folder ‘Android-studio’ and navigate to the android-studio/bin

4.Installation of Android studio in Ubuntu

To launch Android Studio, open a terminal by pressing Ctrl+Alt+T, navigate to the android-studio/bin and execute studio.sh.

To get the path in Ubuntu press Ctrl+L  and change the directory  by taking the terminal using the following command and press enter.

cd /home/mca/android-studio/bin

how to install android studio in ubuntu or command to install android studio in ubuntu
Change the directory path

After changing the directory execute the following command for giving permissions to the folder

sudo  chmod 777 –R studio.sh

how to install android studio in ubuntu or command to install android studio in ubuntu
Setting the permission

Next step is to run the shell program for installing the Android studio by executing the command

./studio.sh

how to install android studio in ubuntu or command to install android studio in ubuntu
Run the shell script (studio.sh)
how to install android studio in ubuntu or command to install android studio in ubuntu
Click OK
how to install android studio in ubuntu or command to install android studio in ubuntu
Installing…
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Finish
how to install android studio in ubuntu or command to install android studio in ubuntu
After finishing your installation, select the option “Start a new Android Studio project” and continue.
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Finish
how to install android studio in ubuntu or command to install android studio in ubuntu
When you finish the installation you can see the window same as above. Click on the run button that shown in the top right part of your window in Green Arrow or click on the ‘Run app’ in Run Menu option.
how to install android studio in ubuntu or command to install android studio in ubuntu
When you click on Run app, select ‘Create New Virtual Device’ and click OK for creating the emulator.
how to install android studio in ubuntu or command to install android studio in ubuntu
Select Phone > Nexus 5x and click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Select Oreo for download (you can select different version of OS based on your need) and click Next
Downloading Oreo
Downloading Oreo…
how to install android studio in ubuntu or command to install android studio in ubuntu
Select Oreo after downloading and click Next
how to install android studio in ubuntu or command to install android studio in ubuntu
Give a name for your AVD and click Finish
Once you finished the creation of AVD, Run the app by clicking the Run menu. Select the AVD you have created already and click OK.
how to install android studio in ubuntu or command to install android studio in ubuntu
Click Install and Continue
how to install android studio in ubuntu or command to install android studio in ubuntu
If you can see “Hello World !” text in the AVD as shown in the above figure ,then your android studio installation is successful.

 

 

5 Replies to “Steps to install Android studio in Ubuntu or command to Install Android Studio in Ubuntu

Leave a Reply

Your email address will not be published.