Set up Android Studio on debian 7 wheezy 64-bit
Now that Android Studio is the official IDE for Android, you can set it up on your development box running debian 7 wheezy 64-bit as follows:
-
Get Android studio from here
cd /tmp wget https://dl.google.com/dl/android/studio/ide-zips/1.1.0/android-studio-ide-135.1740770-linux.zip
-
Unzip it to /opt:
cd /tmp unzip android-studio-ide-135.1740770-linux.zip sudo mv android-studio /opt
-
Install OpenJDK 7 JDK:
sudo apt-get install openjdk-7-jdk
-
Set up the required environmental variable
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
-
Set up 32-bit libraries to avoid the error:
Downloading android-sdk_r22.6.2-linux.tgz from https://dl.google.com/android/android-sdk_r22.6.2-linux.tgz Unpacking android-sdk_r22.6.2-linux.tgz tar xzvfC /tmp/AndroidStudio1254025343410050340FirstRun/android-sdk_r22.6.2-linux.tgz /tmp/AndroidStudio1254025343410050340FirstRun/android-sdk_r22.6.2-linux.tgz-unpacked Unable to run mksdcard SDK tool.
as follows:
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install i32-libs
-
Start Android studio:
/opt/android-studio/bin/studio.sh