“ aapt”IOException error = 2,没有这样的文件或目录“为什么我不能在 Jenkins 上建立我的分级?”?

我有个小问题。

问题:
我试图在 Jenkins 身上建立我的 Android 项目的梯级,现在我站在这个我无法解决的问题上。 在建筑期间,我有这个错误信息:

:Client:mergeDebugResources
/var/lib/jenkins/workspace/LMA-Client/Client/build/exploded-aar/com.google.android.gms/play-services/3.1.59/res/drawable-hdpi/common_signin_btn_text_focus_light.9.png:
Error: Cannot run program "/opt/android-sdk/build-tools/19.0.1/aapt": java.io.IOException: error=2, No such file or directory
:Client:mergeDebugResources FAILED

你可以想象,这适合... 是的,它在那里和 png... 它也在那里,所以错误必须在其他地方。

解决方案?
现在我谷歌了1-2个小时左右,在这个伟大的网站上冲浪,我发现,如果 Jenkins 运行在64位系统上,我需要安装 ia32-libs。就像这样:

sudo apt-get install ia32-libs

现在我试过了,但我不能安装它:

The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch

所以我试着安装 “ ia32-libs-multiarch”,但又一次:

The following packages have unmet dependencies:
ia32-libs-multiarch:i386 : Depends: libgphoto2-2:i386 but it is not going to be installed
Depends: libsane:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

终于来了
所以最后我站在这里问我: 这真的是解决办法吗?我为什么要安装这个?怎么做到的?所以请帮帮我,我想我离答案不远了。

43576 次浏览

我在 Ubuntu 13.10上犯了以下类似的错误:

Cannot run program "/usr/local/android-sdk-linux/build-tools/19.0.3/aapt": error=2, No such file or directory

这个答案帮我修好了:

To get aapt working (this fixed my issues with the avd as well) just install these two packages:

sudo apt-get install lib32stdc++6 lib32z1

对于 Arch 64用户,必须首先为 pacman 安装 启用 multilib,然后安装32位软件包:

sudo pacman -Syv lib32-libstdc++5 lib32-zlib

我在 经理上安装了 ndk,它起作用了。

对于 Fedora 用户:

sudo dnf install zlib.i686 libstdc++.i686