我有一点问题.
问题:
我正在尝试在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
你可以想象,这就是它......它在那里和那个......它也在那里,所以错误必须在其他地方.
解决方案?
现在我用Google搜索了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.
最后
,我终于站在这里问我:这真的是解决方案吗?我为什么要安装这个东西?如何?所以请帮助我,我想我离答案不远了.
我在Ubuntu 13.10上遇到类似的错误:
Cannot run program "/usr/local/android-sdk-linux/build-tools/19.0.3/aapt": error=2, No such file or directory
而这个答案固定对我来说:
为了让aapt工作(这也修复了我对avd的问题),只需安装这两个包:
sudo apt-get install lib32stdc++6 lib32z1
对于Arch 64用户,必须首先为pacman 启用multilib,然后安装32位软件包:
sudo pacman -Syv lib32-libstdc++5 lib32-zlib
对于Fedora用户:
sudo dnf install zlib.i686 libstdc++.i686