无法解析的Eclipse"存档所需的库..."问题 [英] Unable to resolve Eclipse "Archive for required library..." issue

查看:365
本文介绍了无法解析的Eclipse"存档所需的库..."问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要解决这个非常普遍的Eclipse错误帮助。

I need help with resolving this very common Eclipse error.

背景:我工作的一个机器人项目的Eclipse(JUNO)ADT在Ubuntu 14.10和一切都很好,直到我决定跟在code,为此,我包括WebSockets的工作JSON-org.jar和WebSocket.jar,从 github上项目下载这里

Background: I am working on an android project with Eclipse(juno) ADT on Ubuntu 14.10 and everything was fine till I decided to work with websockets in the code, for which I included json-org.jar and WebSocket.jar, downloaded from the github project here.

问题: 我现在明白了存档所需的库:无法读取或者不是有效的ZIP文件错误的这两个JAR文件。

Problem: I now get the "Archive for required library: cannot be read or is not a valid ZIP file" error for both these JARs.

我花了无数的时间试图解决这一问题的构建问题。到目前为止,我已经做了以下内容:

I've spent countless hours trying to fix this build issue. So far, I've done the following:

  • 添加JAR来构建路径。删除并添加他们了。
  • 再次下载JAR和取代了previous文件。
  • 重新启动Eclipse。
  • 关闭和打开有关的项目。
  • 清理并生成具体的项目。
  • 已清除了Eclipse缓存执行./eclipse -clean从终端。
  • 降低了我的Java编译器为1.7〜1.5
  • 创建一个单独的Andr​​oid工作区,并导入项目进入新的。
  • 在没有做Maven的清洁的东西,因为我不使用Maven。

到目前为止,一切我已经抬头,并试图失败。我已经提到了以下相关问题:

So far, everything I've looked up and tried has failed. I have referred to the following related questions:

  • <一个href="http://stackoverflow.com/questions/8857985/compiler-error-archive-for-required-library-could-not-be-read-spring-tool-su">Compiler错误存档所需的库无法读取 - 春天工具套件
  • <一个href="http://stackoverflow.com/questions/19526072/archive-for-required-library-could-not-be-read-or-is-not-a-valid-zip-file">archive对所需的库无法读取或者不是有效的ZIP文件
  • Compiler error "archive for required library could not be read" - Spring Tool Suite
  • archive for required library could not be read or is not a valid ZIP file

下面是一个什么样的项目生成看起来像一个截图:

Here's a screenshot of what the project build looks like:

有人可以帮我解决这个问题!我真的需要这个帮助。

Can someone please help me fix this! I really need help with this one.

推荐答案

我现在已经解决了该问题。

I have now fixed the issue.

我觉得有一些包含在项目的JAR文件之间的重复发生冲突。消除WebSocket.jar,JSON-org.jar和java-的WebSocket-1.3.0.jar解决的构建问题和code并不真的需要反正这些JAR依赖关系。

I think there was a duplication conflict between some of the JARs included in the project. Eliminating WebSocket.jar, json-org.jar and java-websocket-1.3.0.jar resolved the build issue and the code didn't really need these JAR dependencies anyways.

这篇关于无法解析的Eclipse&QUOT;存档所需的库...&QUOT;问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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