How to install Android Studio on Ubuntu? How to install Android Studio on Ubuntu? android android

How to install Android Studio on Ubuntu?


Below are the steps to install Android Studio in Ubuntu system:

1. Install JDK 6 or later

First, install Oracle JDK 8 (although you could also choose OpenJDK but it has some UI/performance issues) using WebUpd8 PPA.

sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java8-installersudo apt-get install oracle-java8-set-default

To make sure, it’s installed successfully, open a terminal and type (you should get the version number of the jdk you’ve installed e.g javac 1.8.0_11)

javac -version

2. Download and install Android Studio

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

cd android-studio/bin./studio.sh

3. Install SDK Platforms

You need to install some SDK before you jump into building android apps. Click on Configure -> SDK Manager to open Android SDK Manager. Select the latest API (to test against target build, e.g API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.


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

sudo apt-get install unzipsudo tar xvzf android-studio-ide-135.1641136-linux.zipcd android-studio-ide-135.1641136-linux./studio.sh

JDK 1.7 is required for Studio 1.0 onwards:

  1. Download the ubuntu zip from the d.android.com and repeat the steps from above
  2. Download the jdk 1.7 by executing the following commands in terminal as mentioned webupd8:

    sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java7-installer
  3. Open Android Studio and install the SDK tools.

Caveats:

  1. If your system has a 32 bit processor, use Platform Tools r23.0.1.Refer to this bug for details.

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

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

Source: - linux-32-bit-libraries


Run the following command on terminal.

sudo apt-add-repository ppa:paolorotolo/android-studiosudo apt-get updatesudo apt-get install android-studio