Solve the problem that AAPT cannot compile APK, and aapt cannot compile apk
Error:
Run Eclipse + ADT on Ubuntu 12.04 64-bit system and report the following error:
Error executing aapt. Please check aapt is present at /home/null/dev/sdk/build-tools/19.0.3/aapt
Cause:
32-bit library Not Installed
Solution:
Step 1. Modify the Ubuntu update source
$ sudo vi /etc/apt/sources.list
As follows:
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
Then run:
$ sudo apt-get clean$ sudo apt-get update --fix-missing$ sudo apt-get upgrade
Step 2. Install the 32-bit Library
sudo apt-get install ia32-libssudo apt-get install lib32z1
Restart Ecipse, and AAPT can be compiled.