Aapt finished with nonzero output value 127

For 2 days I tried to get pure android activity to compile on intellij idea ultimate on Ubuntu 14.04 64-bit. This error really puzzled me:

Error:Gradle: Execution failed for task ':app:mergeDebugResources'. > /home/guarddog/Documents/github/IcsTrac/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/res/drawable-ldrtl-hdpi/abc_ic_ab_back_mtrl_am_alpha.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/android-sdk-linux/build-tools/22.0.1/aapt'' finished with non-zero exit value 127 

Note. I have Java 8, Gradle 2.5 and / usr / local / android -sdk-linux / tools in my $ PATH.

I tried the tip here: Gradle Build Error in Android Studio . But the error still occurs. How can I solve this problem?

+5
source share
3 answers

I encounter a similar problem. I install lib32z1 and the problem is resolved. Hope this helps.

Thanks @ agustin.aliaga. answer in

completed with zero output

In my case, I had to install the libz.so.1 library for it to work on Ubuntu 15.04

sudo apt-get install lib32z1

Later I will do an in-depth review and find support for the 32-bit Android platform in ubuntu 64 os, you need to install the 32-bit library.

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc ++ 6

+2
source

Close Android Studio, remove the build folders from your project location than open ASs, and select rebuild .

Hope this helps. Let me know if you still have this problem.

EDIT: Please also check this problem: completed with zero output value

+1
source

I usually just do Build> Rebuild Project or Clean Project

if this does not work, then I go File> Invalidate / Caches Restart and select Invalidate and Restart

+1
source

All Articles