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:

  1. 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
  2. Unzip it to /opt:
    cd /tmp
    unzip android-studio-ide-135.1740770-linux.zip
    sudo mv android-studio /opt
  3. Install OpenJDK 7 JDK:
    sudo apt-get install openjdk-7-jdk
  4. Set up the required environmental variable
    export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
  5. 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
    
  6. Start Android studio:
    /opt/android-studio/bin/studio.sh
avatar

About paolog

homo technologicus cynicus
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

One Response to Set up Android Studio on debian 7 wheezy 64-bit

  1. avatar paolog says:

    Guide is still valid for Debian 8 (Jessie) except you can skip step 4 and the last line in the step 5 should be:

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

Leave a Reply

Your email address will not be published. Required fields are marked *