aapt finished with non zero exit value 127

1.1k views Asked by At

here is my environment:

  1. Ubuntu 14.04 x86_64
  2. Android Studio 2.2
  3. Android SDK build-tools 23.0.3

here is my question:

Gradle build failed and says that

aapt finished with non zero exit value 127

How can I solve this problem ?

2

There are 2 answers

0
LiuJQ On BEST ANSWER

I had found the problem that I was running SDK-32bit on Ubuntu-64bit, just install some dependencies searched from Google will solve it.

0
Alfergon On

Found the necessary dependencies for this to work on: this post

Basically, is executing the following:

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