" AAPT" IOException异常错误= 2,没有这样的文件或目录"为什么我不能建立我的摇篮上詹金斯? [英] "aapt" IOException error=2, No such file or directory" why can't I build my gradle on jenkins?

查看:231
本文介绍了" AAPT" IOException异常错误= 2,没有这样的文件或目录"为什么我不能建立我的摇篮上詹金斯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小问题。

的问题:
我试图建立我对詹金斯的Andr​​oid项目的摇篮,现在我站在这个问题,我解决不了。 在建设我有这样的错误消息:

 :客户端: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:
错误:无法运行程序/opt/android-sdk/build-tools/19.0.1/aapt:java.io.IOException异常:错误= 2,没有这样的文件或目录
:客户:mergeDebugResources失败
 

您可以想像,这AAPT ...是它的存在和PNG ......它的存在了,所以错误一定在别处。

解决方案?
现在我GOOGLE了1-2个小时左右,冲浪在这个伟大的网站和我的发现是,如果詹金斯运行在64位系统,我需要安装IA32-库。这样的:

 命令和apt-get安装IA32-库
 

现在我想的是,我可以不安装它:

 下列软件包有未满足的依赖关系:
 IA32-库:取决于:IA32-库,multiarch
 

所以我试图安装的IA32-库 - multiarch的,但又说:

 下列软件包有未满足的依赖关系:
 IA32-库-multiarch:I386:取决于:libgphoto2-2:i386的,但它是不会被安装
                            取决于:libsane的:i386的,但它是不会被安装
E:无法纠正问题,你已经举行了破包。
 

最后
所以最后的即时通讯站在这里,并问我:是真的解决?而我为什么要安装这个东西?如何?所以,请帮助我,我觉得我不远处的答案。
谢谢

解决方案

我有以下类似的错误在Ubuntu 13.10:

不能运行程序/usr/local/android-sdk-linux/build-tools/19.0.3/aapt:错误= 2,没有这样的文件或目录

这个答案固定对我来说:

  

要获得AAPT工作(这个固定我的问题与AVD以及)只要安装这两个包:

 命令和apt-get安装lib32stdc ++ 6 lib32z1
 

I have a little problem.

The Problem:
I am trying to build a gradle of my Android Project on Jenkins and now I am standing on this problem i can't resolve. During the Building I have this Error message:

: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

You can imagine that this aapt... yep its there and the png... its there too, so the mistake must be somewhere else.

The Solution?
Now I googled 1-2 hours around, surfed on this great Website and what I found is that if Jenkins runs on a 64-bit system, I need to install the ia32-libs. Like that:

sudo apt-get install ia32-libs

now I tried that, and I couldn't install it:

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

so I tried to install "ia32-libs-multiarch", but again:

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.

Finally
so finally im standing here and asking me: is that really the solution? And why should I install this thing? And how? So please help me, I think I am not far away from the answer.
Thank you

解决方案

I had the following similar error on Ubuntu 13.10:

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

And this answer fixed it for me:

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

这篇关于" AAPT" IOException异常错误= 2,没有这样的文件或目录"为什么我不能建立我的摇篮上詹金斯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆