0

This is a follow up question to this question: "Conversion to Dalvik format failed with error 1" on external JAR

I got an Android project using Eclipse. When trying to run the application I get this error:

[2016-11-03 12:12:50 - MyProject] Dx unsupported class file version 52.0 ...while parsing android/UnusedStub.class

[2016-11-03 12:12:50 - MyProject] Dx 1 error; aborting

[2016-11-03 12:12:50 - MyProject] Conversion to Dalvik format failed with error 1

I read that it might be a JRE issue but I'm using jre 7 and set the Java compiler in the project's properties to work with compliance to JavaSe-1.7.

What could be the problem?

Community
  • 1
  • 1
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
  • What is the .jar file you have problems with? I had a similar issue when adding an Apache library, xerces.jar and I removed it and then unzipped the .jar file and added as a separate package and then it worked. – vidulaJ Nov 03 '16 at 10:24
  • Im working with several jars but none of them in particular caused it I think.. Im just trying to run the app – CodeMonkey Nov 03 '16 at 10:31
  • IMO, it's a .jar file causing the error and you got to find the one which is causing. – vidulaJ Nov 03 '16 at 10:34
  • How can I find something like this? If I remove a jar, the project won't compile. – CodeMonkey Nov 03 '16 at 11:02
  • Try searching by names of the .jar files and you might get a hunch of what file you should remove. – vidulaJ Nov 03 '16 at 11:03
  • android/UnusedStub.class belongs to Google Play Services which I use... so? – CodeMonkey Nov 03 '16 at 11:09

0 Answers0