无法解析的Eclipse"存档所需的库..."问题所需、问题、Eclipse、QUOT

2023-09-08 09:57:12 作者:动感光波~biubiu

我需要解决这个非常普遍的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:

Compiler错误存档所需的库无法读取 - 春天工具套件 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.