How to Setup Android Studio on Debian 7

May 16, 13 by kenrich

Android-logoLast night I installed Android Studio on Debian 7.  I use the term “install” loosely since you really don’t perform an install, you just extract the files to a folder and then run it.  After creating a project skeleton, I noticed an error when trying to run the project.  The system mentions that ADB is unable to run (well it really says it’s unavailable).  After performing some searches on Google(tm), I noticed that this was due to my having the AMD64 architecture and the ADB requires i386 references which didn’t exist on my system.

The solution was to install the i32-libs package using Apt to make all of this work.  Of course, it wasn’t as simple as this.  I had to first add the i386 (intel 386) architecture as an alternate platform to support using “sudo dpkg –add-architecture i386”.  Even that was not enough.  I had added some additional repositories to /etc/apt/sources.list that needed to be removed, then I had to  run “apt-get update” and then finally “apt-get install i32-libs”.  Finally, my system was ready and ADB ran properly (you can test this by running “./adb version” in the platform-tools folder.

So now my skeleton builds and runs using the virtual devices.  I believe the install took about a gigabyte of space, but that’s okay.  Oh, I should also mention that Android Studio recommends using the Oracle (Sun) Java runtime and tools since there are known bugs with the openjdk that comes installed default with Debian 7.  You have to add a third-party repository (from Canonical, makers of Ubuntu Linux) to your sources.list in order to get this installed (Google on how to do this).   With these two steps I was up and running and ready to develop Android applications.

Add your comment

4 responses for this post

  1. Helena Bach Says:

    We are a bunch of volunteers and starting a brand new scheme
    in our community. Your web site provided us with helpful info to work on.

    You’ve performed an impressive activity and our entire community will probably be grateful to you.

  2. Ross Campanova Says:

    I do not even know how I ended up right here, however I assumed this submit was once great. I don’t understand who you are but definitely you are going to a well-known blogger in the event you aren’t already. Cheers!

  3. Hans-Paul Broschart Says:

    1.) The use of ‘/etc/apt/sources.list’ is outdated: use instead ‘/etc/apt/sources.list.d’ and create a file with the repositories URLs inside in an own file.

    2.) The correct name of the 32bit package is: ia32-libs. But please notice: this package is also outdated. it still exists but is a transitional package. See: http://packages.debian.org/de/wheezy/ia32-libs

  4. Clover Says:

    Don’t you mean “ia32-libs”?

Leave a Reply

You must be logged in to post a comment.