Skip to content Skip to sidebar Skip to footer

Error: Cannot Run Aapt

When I compile an android application ( I tried with the sample ones from the sdk). I get this error: >Error executing aapt: Cannot run program '/home/roel/projects/sdk/build-to

Solution 1:

Ubuntu 14.04.1 LTS solution:

sudo apt-get update 
sudo apt-get install gcc-multilib lib32z1 lib32stdc++6

Reason: aapt needs 32-bit libraries installed


Solution 2:

The problem was my 64bit OS , I missed some 32 bit libs ;)


Solution 3:

SDK tools 24 has a bug, build will fail with the same error. Should be fixed in the new version, for now the workaround in tools/ant/build.xml place

<property name="aapt" location="${sdk.dir}/build-tools/22.0.1/aapt" />
<property name="aidl" location="${sdk.dir}/build-tools/22.0.1/aidl" />
<property name="dx" location="${sdk.dir}/build-tools/22.0.1/dx" />
<property name="zipalign" location="${sdk.dir}/build-tools/22.0.1/zipalign" />

at the end of the xml in the root tag. Replace 22.0.1 with your build tools version


Solution 4:

Debian 7 Wheezy solution:

sudo dpkg --add-architecture i386
sudo apt-get update 
sudo apt-get install ia32-libs

Solution 5:

Ubuntu 13.10 solution:

Append

deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse 

to /etc/apt/sources.list.

sudo apt-get update
sudo apt-get install ia32-libs

Post a Comment for "Error: Cannot Run Aapt"