Failed to allow Eclipse release "Archive for required library ..."

I need help resolving this very common Eclipse error.

Background . I am working on an Android project with Eclipse (juno) ADT on Ubuntu 14.10, and everything was fine until 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 .

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

I spent countless hours trying to fix this build problem. So far I have done the following:

  • Add the JAR to the build path. Deleted and added again.
  • They downloaded the JAR again and replaced the previous files.
  • Restart Eclipse.
  • Close and open the corresponding project.
  • Clean and create a specific project.
  • Cleared the Eclipse cache by running from the terminal. / eclipse -clean.
  • I dropped my java compiler from 1.7 to 1.5
  • Created a separate Android workspace and imported the project into a new one.
  • Maven didn’t do cleaning material since I don’t use Maven.

So far, everything I have been looking for and trying has failed. I mentioned the following related questions:

Here is a screenshot of what the project looks like:

enter image description here

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

+1
source share
1 answer

Now I fixed the problem.

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

0
source

Source: https://habr.com/ru/post/983527/


All Articles