简体   繁体   English

错误:任务':app:zipalignDebug'的执行失败。 >当我在Android Studio上运行我的应用程序时

[英]Error:Execution failed for task ':app:zipalignDebug'. > when I run my app on 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: 我已经安装了Debian 8,并且没有问题地安装了Android Studio,但是当我运行在Ubuntu 15.04上安装Android Studio时创建的应用程序时,出现此错误:

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 谢谢,丹尼斯

I know that this question is 4 months old, but I'm putting the answer here so that it may help someone else. 我知道这个问题已有4个月的历史了,但是我将答案放在这里,以便对他人有所帮助。 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 加载共享库时出错:libz.so.1:无法打开共享库文件:没有这样的文件或目录

So the following command helped me, I hope it helps you too. 因此,以下命令对我有帮助,希望对您有所帮助。

sudo apt-get install lib32z1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:资产中的大文件夹执行任务':app:zipalignDebug'时执行失败 - Error:Execution failed for task ':app:zipalignDebug' when big folder in assets 任务':zipalignDebug'的执行失败 - Execution failed for task ':zipalignDebug' 错误:任务 ':app:preDebugAndroidTestBuild' 的执行失败,当尝试在 android studio 中运行 java 程序时 - Error:Execution failed for task ':app:preDebugAndroidTestBuild' , when tried to run java program in android studio 将android studio更新为3.0版本时,出现错误:任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败 - When update android studio to 3.0 version I get Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' 我收到此错误 Execution failed for task:app:processDebugMainManifest while running with npm run android 但使用 android studio 运行正常 - i got this error Execution failed for task :app:processDebugMainManifest while running with npm run android but with android studio it works fine android运行失败错误:任务':app:compileDebugJavaWithJavac'的执行失败 - android run failed Error:Execution failed for task ':app:compileDebugJavaWithJavac' 在 Android Studio 中运行 Flutter 应用程序时出错:任务 ':app:generateDebugBuildConfig' 执行失败 - ERROR When Running Flutter App in Android Studio: Execution failed for task ':app:generateDebugBuildConfig' 错误显示Android Studio中的任务':app:dexDebug'执行失败 - Error says Execution failed for task ':app:dexDebug' in android studio Android Studio TransformException:错误:任务':app:transformClassesWithDexForDebug'的执行失败 - Android Studio TransformException : Error:Execution failed for task ':app:transformClassesWithDexForDebug' Android Studio:错误:任务':app:processDebugManifest'的执行失败 - Android studio : Error:Execution failed for task ':app:processDebugManifest'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM