Question

Firstly, sorry for my bad english!

I've made an Android/PhoneGap application and i'm trying to export it for google play store but Eclipse throw me the error 'Conversion to Dalvik format failed with error 1'.

So i've searched a lot of information about it and it's because i use a third library (BarCodeScanner) wich also includes the same .jars files than my 'main' project.

When i tried to 'Remove from build path' in BareCodeScanner the 'Google APIs [Android 4.2.2]' and 'Clean', Apk generate fine but unfortunately the scanner doesn't works and freeze the app. I've also try to uncomment proguard lines on the third library and main project but the error coming again.

Please how can i fix it ? I've tried many things. Rebuild project etc..

Ps: Works fine in debug flow.

Wanted to post an img of my project explorer for help you but i need 10 reputation.

Proguard errors log

Proguard returned with error code 1. See console [2013-06-06 18:19:47 - ecocompare] java.io.IOException: Can't read [C:\Users\Dell\Desktop\BarcodeScanner\2.2.0\LibraryProject\bin\captureactivity.jar] (Can't process class [com/google/zxing/client/android/result/supplement/URIResultInfoRetriever.class] (Unexpected end of ZLIB input stream)) [2013-06-06 18:19:47 - ecocompare] at proguard.InputReader.readInput(InputReader.java:230) [2013-06-06 18:19:47 - ecocompare] at proguard.InputReader.readInput(InputReader.java:200) [2013-06-06 18:19:47 - ecocompare] at proguard.InputReader.readInput(InputReader.java:178) [2013-06-06 18:19:47 - ecocompare] at proguard.InputReader.execute(InputReader.java:78) [2013-06-06 18:19:47 - ecocompare] at proguard.ProGuard.readInput(ProGuard.java:196) [2013-06-06 18:19:47 - ecocompare] at proguard.ProGuard.execute(ProGuard.java:78) [2013-06-06 18:19:47 - ecocompare] at proguard.ProGuard.main(ProGuard.java:492) [2013-06-06 18:19:47 - ecocompare] Caused by: java.io.IOException: Can't process class [com/google/zxing/client/android/result/supplement/URIResultInfoRetriever.class] (Unexpected end of ZLIB input stream) [2013-06-06 18:19:47 - ecocompare] at proguard.io.ClassReader.read(ClassReader.java:112) [2013-06-06 18:19:47 - ecocompare] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) [2013-06-06 18:19:47 - ecocompare] at proguard.io.JarReader.read(JarReader.java:65) [2013-06-06 18:19:47 - ecocompare] at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65) [2013-06-06 18:19:47 - ecocompare] at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) [2013-06-06 18:19:47 - ecocompare] at proguard.InputReader.readInput(InputReader.java:226) [2013-06-06 18:19:47 - ecocompare] ... 6 more [2013-06-06 18:19:47 - ecocompare] Caused by: java.lang.RuntimeException: Unexpected end of ZLIB input stream [2013-06-06 18:19:47 - ecocompare] at proguard.classfile.io.RuntimeDataInput.readInt(RuntimeDataInput.java:136) [2013-06-06 18:19:47 - ecocompare] at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:77) [2013-06-06 18:19:47 - ecocompare] at proguard.classfile.ProgramClass.accept(ProgramClass.java:346) [2013-06-06 18:19:47 - ecocompare] at proguard.io.ClassReader.read(ClassReader.java:91) [2013-06-06 18:19:47 - ecocompare] ... 11 more

No correct solution

OTHER TIPS

Open up the .jar file with WinZip/WinRAR and remove the offending .class files. Re-save the jar, and put the new jar back into your project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top