Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by passsy

    Occurs when java version is changed. Ways to fix,

    1. Change JAVA_HOME to the previous version
    2. Change the compiler version to 1.7 for this specific module in build.gradle
    apply plugin: 'java'
    sourceCompatibility = 1.7
    targetCompatibility = 1.7
    
com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)	at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:476)	at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)	at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)	at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)	at com.android.dx.command.dexer.Main.parseClass(Main.java:787)	at com.android.dx.command.dexer.Main.access$1600(Main.java:88)	at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1722)	at com.android.dx.command.dexer.Main.processClass(Main.java:773)	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:741)	at com.android.dx.command.dexer.Main.access$1200(Main.java:88)	at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1683)	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)	at com.android.dx.command.dexer.Main.processOne(Main.java:695)	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:560)	at com.android.dx.command.dexer.Main.runMultiDex(Main.java:376)	at com.android.dx.command.dexer.Main.run(Main.java:290)	at com.android.builder.internal.compiler.DexWrapper.run(DexWrapper.java:54)	at com.android.builder.core.DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:173)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)