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.

19 comments:

  1. Yep add the multiarch as stated above but i stll get the error
    Fresh install on deb wheezy

    ReplyDelete
  2. Many MAny MANy MANY thanks! Your guide is very usefull

    ReplyDelete
  3. Nice tutorial on android technology hats-off to your effort. Your article explained the potential of android technology in coming years. Android Course in Chennai

    ReplyDelete
  4. nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.
    Phonegap Training in chennai | Phonegap Training chennai | Phonegap course in chennai | Phonegap course chennai

    ReplyDelete
  5. Excellent post. Android is an open source operating system used for tablet computers and smartphones. If your are interested to develop creative mobile applications then you must learn about android OS. Its helpful for you.

    Regards..
    Android Training in Chennai




    ReplyDelete
  6. I agree with your post. Android software development kit makes the application development process lot simpler and effective. You can create best performing android application with ease. Android Training Institute in Chennai | Best Android Training in Chennai

    ReplyDelete
  7. Excellent post. Android is an open source operating system used for tablet computers and smartphones. Best Android Training in Chennai

    ReplyDelete
  8. Excellent post very usefull, Thank's for all.

    ReplyDelete
  9. Good info! Thanks for the great share sounds great to hear about the techs, newbie though, this article helps in Mobile application development in chennai

    ReplyDelete