

There are 2 mechanisms which can be used to resolve this issue. The latest (May 2016) tool chain supports 1.6 and 1.7, but not 1.8. So in this case, the "bad version" - is 1.7. Wikipedia : Java class file has a table showing the versions of java and their version number +-+-+ So when oracle generates a new java, there is a period of time when the java generated by the latest sdk, is incompatible with the java supported by the build tools. The java language and build tools are maintained by Oracle, and the dex/dalvik/Android Runtime (ART) tools are maintained by google/android. Reading this class file (it has 'cafebabe' magic), I got confused by version of JVM 1.7 This message says 0033.0000 (Java SE 1.7) is unsupported (Java class files have 'cafebabe' at the beginning) This is a check from the build tools about My particular problem was not related to Java 6/7, as I never installed Java 7 in the first place, and compiler compliance was set to Java 6 (I checked at the time, as I had seen that solution suggested elsewhere).ĭx bad class file magic (cafebabe) or version (0033.0000)
#Freedom writer magic cafe apk#
I observe that packing the apk on my Linux laptop (Lucid Lynx) for the exact same code has absolutely no problems whatsoever.Īny ideas? Getting very frustrated with this.Īpparently, this error message can be triggered by a variety of different problems. Already done all the "Fix Properties"/Clean etc that are suggested when moving to ADK14 (as I naturally had all those problems), but they haven't helped with this.Īll the libraries are on the same Android SDK and JDK/JRE version, so this wouldn't seem to be the issue.And in fact, the app is easily built in debug and installed on my old version 1.5 HTC Magic - it is only when I need to export a signed application package that this breaks down. I am building an old project that uses lots of libraries, so presumably the problem is related to this fact.
#Freedom writer magic cafe full#
The full exception text: .圎xception: Conversion to Dalvik format failed with error 1Īt .executeDx(BuildHelper.java:740)Īt .exportReleaseApk(ExportHelper.java:204)Īt .ExportWizard.doExport(ExportWizard.java:290)Īt .ExportWizard.access$0(ExportWizard.java:229)Īt .ExportWizard$1.run(ExportWizard.java:214)Īt .ModalContext$n(ModalContext.java:121)

Since moving to ADK14, I have been unable to build new apks for release on my Windows 7 system.īuilding fails with "conversion to dalvik format failed with error 1", while the console is filled with lots of "Dx bad class file magic (cafebabe) or version (0033.0000)".
