Error:Execution failed for task ':app:zipalignDebug'. > when I run my app on Android Studio

廉价感情. 提交于 2019-12-11 11:57:20

问题


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


回答1:


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:

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


来源:https://stackoverflow.com/questions/32548170/errorexecution-failed-for-task-appzipaligndebug-when-i-run-my-app-on-and

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!