错误:任务':app:zipalignDebug'的执行失败。 >当我在Android Studio上运行我的应用程序时 [英] Error:Execution failed for task ':app:zipalignDebug'. > when I run my app on Android Studio
问题描述
我已经安装了Debian 8,并且没有问题地安装了Android Studio,但是当我运行在Ubuntu 15.04上安装Android Studio时创建的应用程序时,出现此错误:
I've installed Debian 8 and I installed Android Studio without problem, but when I run my application, created when I had Android Studio on Ubuntu 15.04, I've this error:
Error:Execution failed for task ':app:zipalignDebug'.
> Process 'command '/home/phate/Android/Sdk/build-tools/22.0.1/zipalign'' finished with non-zero exit value 127
这是什么错误?我该如何解决?
what kind of error is this? How I can resolve?
非常感谢
丹尼斯
Thank you at all, Dennis
推荐答案
我知道这个问题已有4个月的历史了,但是我将答案放在这里,以便对其他人有所帮助。
在出现实际错误之前,我得到了这样的东西:
I know that this question is 4 months old, but I'm putting the answer here so that it may help someone else. Before the actual error, I got something like this:
加载共享库时出错:libz.so.1:不能打开共享对象文件:没有这样的文件或目录
error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
因此以下命令对我有帮助,希望对您有所帮助。
So the following command helped me, I hope it helps you too.
sudo apt-get install lib32z1
这篇关于错误:任务':app:zipalignDebug'的执行失败。 >当我在Android Studio上运行我的应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!