Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing android-studio on Debian Wheezy.

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Installing android-studio on Debian Wheezy.

#1 Post by edbarx »

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

    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: Select all

    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  5. If android-studio complains that libz.so.1 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.

Enjoy!
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.

Post Reply