How do I fix this ZipException while compiling an Android project on Jenkins? How do I fix this ZipException while compiling an Android project on Jenkins? jenkins jenkins

How do I fix this ZipException while compiling an Android project on Jenkins?


The problem turned out to be that due to some configuration chicanery involved in making use of the Jenkins matrix build feature (a very nice feature, by the way) that a library was not putting its classes.jar file where the parent project was expecting to find it, causing the reported error. That was basically a "file not found" that doesn't say so. We're still not sure what (if anything?) the LD_LIBRARY_PATH had to do with it.

My colleague tweaked the build.xml file for the main project and the library to more forcefully agree on where output files are going to end up, and now everything works again, much to our relief.


I had the same problem. I was building on Jenkins and jar was getting copied into libs incorrectly.

I am using the Jenkins Copy Artifacts Plugin to grab a common library jar and copy it into libs/. I got the error when I did not use the "Flatten Directories" option. Once I just had the jar in the libs directory everything was back to normal.

Hopefully this saves someone the headache!