How to install Android Studio on Ubuntu?

I need to install Android Studio on Ubuntu, and I used this link to download Android Studio.

Is there an easy way to install Studio on Ubuntu?

+49
android android-studio ubuntu
04 Feb '15 at 5:31
source share
16 answers

Download the Linux SDK from the Android website. Copy the folder to where you want to extract the contents. Open the terminal there and run:

sudo apt-get install unzip sudo tar xvzf android-studio-ide-135.1641136-linux.zip cd android-studio-ide-135.1641136-linux ./studio.sh 



JDK 1.7 is required for Studio 1.0 onwards:

  • Download zubuntu zip from d.android.com and repeat the steps above
  • Download jdk 1.7 by running the following commands in the terminal as indicated by webupd8 :

     sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer 
  • Open Android Studio and install the SDK tools.

Cautions:

Note. If you are using the 64-bit version of Ubuntu, you need to install the 32-bit libraries with the following command:

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

Source: - linux-32-bit-librarie

+35
Feb 04 '15 at 5:46
source share

The following are the steps to install Android Studio on an Ubuntu system:

1. Install JDK 6 or later

Install Oracle JDK 8 first (although you can also choose OpenJDK, but it does have some UI / performance issues) using PPU .

 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 make sure that it is installed successfully, open a terminal and enter it (you should get the version number of the installed jdk, for example javac 1.8.0_11)

 javac -version 

2. Download and install Android Studio

Download the Android Studio for Linux package and extract it somewhere (for example, the home directory). Then enter:

 cd android-studio/bin ./studio.sh 

3. Installing the SDK platforms

You need to install several SDKs before moving on to creating Android applications. Click on Configure -> SDK Manage r to open the Android SDK Manager. Select the latest API (for testing against the target build, for example API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.

+49
Feb 04 '15 at 6:15
source share

Run the following command on the terminal.

 sudo apt-add-repository ppa:paolorotolo/android-studio sudo apt-get update sudo apt-get install android-studio 
+24
Jun 26 '15 at 5:31 on
source share

Do not forget to run:

/opt/android-studio/bin/studio.sh

when you finish the installation.

+6
Jun 27. '15 at 1:10
source share

To install Android Studio on Ubuntu Studio 14.04 and derivatives, do the following:

Step 1: Open the terminal with a dash or press Ctrl + Alt + T

Step 2: If you haven’t done so, add this repository with the following command:

 sudo add-apt-repository ppa:paolorotolo/android-studio 

Step 3: Update APT with the command:

 sudo apt-get update 

Step 4: Now install the program using the command:

 sudo apt-get install android-studio 

Step 5: After installation, run the program by typing Dash:

 studio 
+6
Feb 01 '16 at 12:08
source share

This is how I installed Android studio on xubuntu.

1. Install the JDK:

Go through the following commands to install jdk

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

If you want to install a different version of jdk than replace your version number with 7 in the last two commands.

2. Download the latest Android studio from the official website: https://developer.android.com/studio/index.html

It is better to use the latest version of Android-studio, because I tried to install version 1.5.1, and it did not work. Then I installed version 2.1.1 and it works great.

  1. Extract the downloaded Android studio file to any desired folder. Now go to the extracted Android β†’ bin directory and open the terminal here. Now follow these steps:

    ./studio.sh

What is it. If you encounter any problem than comment below.

+6
Jun 07 '16 at 4:38 on
source share

You can also install using PPA link

+4
Feb 04 '15 at 5:34
source share

Android Studio PPA is supported by Paolo Rotolo. We just need to add PPA to our system and install it using the following commands:

 $ sudo add-apt-repository ppa:paolorotolo/android-studio $ sudo apt-get update $ sudo apt-get install android-studio 

See allubuntu.com for details.

+2
Jan 14 '16 at 6:49
source share

To install Android studio on ubuntu, this is the easiest way:

First of all, you must install Ubuntu Make before installing Android Studio. Enter the following commands in one order, one at a time on the terminal:

1) sudo add-apt-repository ppa: ubuntu-desktop / ubuntu-make

2) Update sudo apt-get

3) sudo apt-get install ubuntu-make

Now that you're done with Ubuntu, use the command below to install Android Studio:

4) umake android

During installation, it will provide you with a couple of options that you can handle. So, the installation is complete. You can open it and run the application of your choice. Isn't that very easy? Let me know if you encounter any problem, I can help.

Source Install Android Studio

+2
Aug 27 '16 at 18:49
source share

add repository

 sudo apt-add-repository ppa:maarten-fonville/android-studio sudo apt-get update 

Then install the following command:

 sudo apt-get install android-studio 
+2
Sep 23 '16 at 3:04 on
source share

The easiest way to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as a zip, try to manually install it, add a PPA or a fiddle with Java installation. Ubuntu Make'll automatically download the latest version of Android Studio, install it along with OpenJDK and all the necessary dependencies, and create an application launch entry in Dash.

Step 1: Install Ubuntu Make

Run this command:

 sudo snap install --classic ubuntu-make 

Step 2. Install Android Studio

Run this command:

 ubuntu-make.umake android 

Once you accept the license and press "Enter" to confirm the installation path, Ubuntu Make'll download and install Android Studio.

Step 3. Install Android SDK

Open your newly installed Android Studio from the dash:

Android Studio app on Dash

There is no need to import anything if this is the first time you install it:

The installation wizard will guide you through the installation:

Android

Select "Standard Installation" to get the latest SDK and Custom if you want to change the SDK version or set the location. From now on, it's pretty simple, just click β€œNext” and you will download and install the SDK.

Step 4: Install PATH (optional)

This step can be useful if you need Android SDK developer teams such as adb, fastboot, aapt, etc., available in Terminal. You may need third-party development platforms such as React Native, Ionic, Cordova, etc. And other tools. To configure PATH, edit the ~/.profile file:

 gedit ~/.profile 

and then add the following lines to it:

 # Android SDK Tools PATH export ANDROID_HOME=${HOME}/Android/Sdk export PATH="${ANDROID_HOME}/tools:${PATH}" export PATH="${ANDROID_HOME}/emulator:${PATH}" export PATH="${ANDROID_HOME}/platform-tools:${PATH}" 

If you changed the location of the SDK at the end of step 3, be sure to change the line export ANDROID_HOME=${HOME}/Android/Sdk accordingly.




Tested on Ubuntu 16.04LTS and higher. It will work with 14.04LTS if you first install support for snap packages . Thanks to Didier "didrocks" Roche for binding Ubuntu Make . 😊




Note. This question is similar to the AskUbuntu question "How to install Android Studio on Ubuntu?" and my answer . I reproduce my answer here to provide a complete complete answer, not just a link.

+2
Sep 06 '17 at 12:19 on
source share

Hey. If you want to install Android studio on ubuntu, you will first have Java JDk on ubuntu. Install Java SDK

First you need to install Oracle on Java 7 (JDK and JRE)

Download the Java SDK 32 or 64 bit, depending on your version.

java sdk on ubuntu

Then extract the file in the / tmp folder. A dialog box appears, click "replace all." The error will also pop up, click "Close."

Go to the tmp folder, you need to create a new jdk folder name and version. Right-click the folder, and then click rename and copy the folder name.

Also read how to install Genymotion on Ubuntu First write this command and press "Enter".

install sroid for Android on ubuntu linux

 sudo su 

Then write this command and press enter

 if [ ! -d '/usr/lib/jvm' ]; then mkdir /usr/lib/jvm; fi 

Paste this command

 mv /tmp/jdk1.8* /usr/lib/jvm/ 

jdk1.8 * = replace it with the name of the selected folder in this example = jdk1.8.0_05

and press enter

 sdk install linux 

java, javac, jar, javaws = we have to replace these

 update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065 update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065 update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065 update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/bin/javaws 1065 update-alternatives --config java java -version 

This was taken from http://emulatorforpc.com/best-android-emulator-ubuntu/

+1
Mar 07 '16 at 17:58
source share

I just studied this question now, you should use Ubuntu Make

Which tool is a command line tool that allows you to download the latest version of popular developer tools during installation "

0
Nov 24 '15 at 13:41
source share

You can always follow the official guide for installing Android Studio on Linux. There you can even watch the video!

https://developer.android.com/studio/install.html

Remember to select Linux from the drop-down list.

Screenshot of video

To summarize the steps: download Android Studio and extract it and run studio.sh to start it. If you are using 64-bit Ubuntu, you need to run:

 sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 
0
Oct 08 '16 at 9:47
source share

Follow the steps through the terminal:

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

after that:

  1. sudo apt-get install oracle-java8-set-default

then;

  1. Download Android Studio from https://developer.android.com/studio/index.html ", use all Android Studio packages.
  2. Unzip the file.

Last type via terminal:

  • cd android-studio
  • cd bin
  • ./studio.sh

Then follow the commands and you are ready to go.

0
Aug 03 '17 at 9:39 on
source share

I am having a problem with an outdated version of umake. What has been fixed:

 sudo apt remove --purge ubuntu-make sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt update sudo apt install ubuntu-make umake android 
0
Aug 07 '17 at 12:37 on
source share



All Articles