How to make Android's aapt and adb work on 64-bit Ubuntu without ia32-libs (works for versions 12, 13 and 14)

maiatoday picture maiatoday · Oct 22, 2013 · Viewed 45.2k times · Source

Since Ubuntu 13.10 no longer has ia32-libs I cannot get my android development environment running on a clean install of 13.10.

The error is ~/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory

This file does exist and is executable but it is a 32bit executable.

In previous installs I just installed ia32-libs to fix this but this solution no longer works for Ubuntu 13.10.

I have tried solutions proposed by askubuntu questions eg. this one https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package

but it isn't working for me. From that askubuntu.com answer I see I should install separate packages with

sudo apt-get install package:i386 

but I don't know which packages to install to make the android tools work again.

Has anyone else solved this problem and or does anyone have a list of packages which need to be installed for the android tools?

Answer

JafarKhQ picture JafarKhQ · Oct 27, 2013

Another way(without adding i386 architecture)...

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1

Ref: Fix Android adb on Ubuntu 13.10 64bit