Installing Android Studio on Debian 8

Android Studio is downloaded from official website:
http://developer.android.com/sdk/installing/index.html?pkg=studio

You gonna need Java SE Development Kit 7:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

To install the java devkit follow instructions from here:
https://wiki.debian.org/JavaPackage

change the default jdk used in the system (openJDK doesn't work with Android Studio):

sudo update-alternatives --config java

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0    /usr/lib/jvm/java-7-oracle/jre/bin/java          1062      auto mode
  1    /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  2    /usr/lib/jvm/java-7-oracle/jre/bin/java          1062      manual mode

Press enter to keep the current choice[*], or type selection number:
select the one from Oracle (in my case number 2)

Install lib32stdc++-4.9-dev package. If you don't install it you gonna get "unable to run mksdcard sdk tool" error message while installing Android Studio

Unzip Android Studio archive somewhere and go to /bin directory. Run ./studio.sh script and follow the instructions

Install additional library for Android Studio
sudo apt-get install lib32z1

Install KVM libraries:
https://wiki.debian.org/KVM#Installation

No comments:

Post a Comment