2天,我一直试图获得一个空白的
android活动,以便在64位Ubuntu 14.04上的intellij idea终结时进行编译.这个错误让我很难过:
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
注意我的$PATH中有Java 8,Gradle 2.5和/usr/local / android-sdk-linux / tools.
我在这里尝试了这个建议:Gradle build failed in Android Studio.但错误仍然存在.我该如何解决这个问题?
解决方法
我遇到了类似的问题.我安装了lib32z1并解决了问题.希望它可以帮助.
谢谢@ agustin.aliaga.的回答
finished with non zero exit value
In my case,I had to install “libz.so.1” library to make it work,on Ubuntu 15.04
sudo apt-get install lib32z1
后来,我做了一个深入的调查,发现在ubuntu 64 os中支持32位Android平台,一个应该安装32位库.
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6