BUILD FAIL in Android mode
DEHiCKA opened this issue · 3 comments
DEHiCKA commented
Win10, Processing 3.2.1 or 3.1.2 + Android mode 3.0.1 or 4.0 b2
grafica.jar -> grafica-a0623d69ef03e1db052e333c71774ffa.jar
[dx]
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] java.lang.RuntimeException: Exception parsing classes
[dx] at com.android.dx.command.dexer.Main.processClass(Main.java:752)
[dx] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
[dx] at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
[dx] at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
[dx] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
[dx] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
[dx] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
[dx] at com.android.dx.command.dexer.Main.processOne(Main.java:672)
[dx] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:277)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:245)
[dx] at com.android.dx.command.Main.main(Main.java:106)
[dx] Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
[dx] at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
[dx] at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
[dx] at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
[dx] at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
[dx] at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
[dx] at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
[dx] at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
[dx] at com.android.dx.command.dexer.Main.processClass(Main.java:749)
[dx] ... 12 more
[dx] 1 error; aborting
BUILD FAILED
jagracar commented
Hi, sorry for looking into this so late. It seems that the problem was coming from the Java version that I used to build the library. Changing java8 to java7 seems to solve the problem.
Please give a try to version 1.8.0 and let me know if it solves the problem.
Cheers!
DEHiCKA commented
Thanks, it is working!
jagracar commented
Great! Sorry for taking so long to fix it!