Wednesday 8 May 2013

Installing Android SDK tools on Debian Wheezy

Since debian has moved to multiarch, the process for installing the android SDK on debian has become easier, but the old way (install ia32-libs) does not work anymore.

The Problem

When running tools (like the android virtual device manager) error messages appear:


sdk/build-tools/android-4.2.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
   
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


Install Step 1. Download the android SDK

You may already have done this bit, however here are full install instructions.

Download the android SDK into somewhere convenient and unzip the archive. No system permissions are required.

    unzip adt-bundle-linux-x86_64-20130219.zip

Now launch the eclipse IDE

    cd adt-bundle-linux-x86_64-20130219/
    ./eclipse/eclipse

Installing ia32-libs will no longer work as debian as moved to multiarch support.

Solution. Use Multiarch

Multiarch support makes installing libraries from the i386 distribution easy...

    sudo dpkg --add-architecture i386
    sudo aptitude update
    sudo aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386


Now launch eclipse, and everything should now work just fine.