You are currently viewing the site as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you're new to AQ, you may find the following links useful:Site FAQ |
If you need to reset your password, click here.

Please note that while registration to AndroidQuestions.org is now open, if you already have a LinuxQuestions.org account your existing account information will work here at AQ. Please read this thread for more information about AndroidQuestions.org.

Installing android studio on Debian.

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.

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.

Change the ownership of all the files in the android-studion 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!

Code:

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:

chown -R android-studio

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

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

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:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

If android-studio complain that libz.so.1 is not found, do this:

Code:

apt-get install zlib1g

You may most probably need to also run:

Code:

apt-get install lib32stdc++6

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