Results 1 to 1 of 1
  1. #1

    Installing android studio on Debian.

    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-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!
      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:
      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. 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:
      export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
    5. If android-studio complain that is not found, do this:
      apt-get install zlib1g
    6. You may most probably need to also run:
      apt-get install  lib32stdc++6

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

    Last edited by edbarx; 05-25-2014 at 02:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts