Wednesday, April 24, 2013

Making Android SDK work with Debian Wheezy 64-bit (amd64)

The main issue with the Android SDK and a linux 64-bit platform is that the platform-tools provided by Google are 32-bit binaries. Of course you can build all the tools by yourself. Google provides the sources and the howto at the Android-Tools. But this can be a bit painfull.
Another way is to make the provided tools make work at your 64-bit environment. In former times we had the ia32-libs package; now we have multiarch :

$dpkg --add-architecture i386 

Add the "new" platform to your /etc/apt/sources.list :

deb [arch=amd64,i386] http://ftp.de.debian.org/debian/ wheezy main non-free contrib

Make an update ....

$apt-get update


... install the neccessary packages ....

$apt-get install libstdc++6:i386 libncurses5:i386 libz1:i386

and finally all the platform-tools (adb,aapt, ...) will suddenly work ;-)

1 comment:

HyunChul Joh said...

Thank you so much!!!
You make my day!!!
From Korea :)