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:

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