Installing android-studio on Debian Wheezy.

Share your own howto's etc. Not for support questions!

Installing android-studio on Debian Wheezy.

Postby edbarx » 2014-05-25 18:27

To use android studio on Debian 7 (Wheezy) follow these steps:

  1. Download the .tgz archive from the android studio site. This large file is presumably a Slackware package. I found that extracting it to a directory does not result in a functioning installation.
  2. Extract the archive to a directory under your /home/user-name. The reason for choosing the home directory is because android-studio needs read and write rights as it configures and updates itself automatically especially during the first run. Using the home directory as a host directory for the installation avoids the need to run android studio as root.
  3. Change the ownership of all the files in the android-studio file hierarchy. I found this was causing android studio not to function complaining that the sdk was not found although it was sitting happily in its own file hierarchy. The problem was 'permission denied' errors due to a group id: 12275 and user id: 5000. Change both of these to your user group and your user name, say group:user. Use chown recursively but be warned that chown -R has the ability to ruin an entire insallation. This way is safe, but do a double check and don't assume that howtos have magical powers.
    Code: Select all
    cd /home/user

    Suppose the extracted android studio top directory is in /home/user and is called android-studio. The chown command would be as follows:
    Code: Select all
    chown -R android-studio
  4. Android studio may complain that it didn't find the correct sdk and will instruct you to upgrade it irrespective of whether your android studio version is the latest. The cure for this ailment is to edit the /etc/environment file adding the JAVA_HOME environment variable. Add the following string to the file and save it.
    Code: Select all

    As you can see, make sure to have openjdk-7-jdk installed. You don't need to reboot to give your android-studio your burn-in-test. In that case run:
    Code: Select all
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  5. If android-studio complains that is not found, do this:
    Code: Select all
    apt-get install zlib1g
  6. You may most probably need to also run:
    Code: Select all
    apt-get install  lib32stdc++6

Note, that you don't need to install the complete set of 32 bit libraries. This worked for me.

Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
User avatar
Posts: 5399
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests