Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Android Studio on Ubuntu?

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

Is there any easy way to install Studio on Ubuntu?

like image 631
Sun Avatar asked Feb 04 '15 05:02

Sun


People also ask

Can Android Studio run on Linux?

To install Android Studio on Linux, proceed as follows: Unpack the .zip file you downloaded to an appropriate location for your applications, such as within /usr/local/ for your user profile, or /opt/ for shared users.


2 Answers

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/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo 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.

like image 168
GrIsHu Avatar answered Oct 17 '22 01:10

GrIsHu


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 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:

  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/java sudo apt-get update sudo 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

like image 40
Droidekas Avatar answered Oct 17 '22 01:10

Droidekas