- 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-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.
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
cd /home/user
Code: Select all
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 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.
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
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Code: Select all
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
- If android-studio complains that libz.so.1 is not found, do this:
Code: Select all
apt-get install zlib1g
- You may most probably need to also run:
Code: Select all
apt-get install lib32stdc++6
Enjoy!