java - UNEXPECTED TOP-LEVEL EXCEPTION: Error:com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) android studio -


i'm developing android app in imported pure java library jar file, after when trying run app gives me 2 errors,

1. unexpected top-level exception: java.lang.runtimeexception: exception parsing classes @ com.android.dx.command.dexer.main.processclass(main.java:752) @ com.android.dx.command.dexer.main.processfilebytes(main.java:718) @ com.android.dx.command.dexer.main.access$1200(main.java:85) @ com.android.dx.command.dexer.main$filebytesconsumer.processfilebytes(main.java:1645) @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:284) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:166) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:672) @ com.android.dx.command.dexer.main.processallfiles(main.java:569) @ com.android.dx.command.dexer.main.runmultidex(main.java:366) @ com.android.dx.command.dexer.main.run(main.java:275) @ com.android.dx.command.dexer.main.main(main.java:245) @ com.android.dx.command.main.main(main.java:106) caused by: com.android.dx.cf.iface.parseexception: bad class file magic (cafebabe) or version (0034.0000) @ com.android.dx.cf.direct.directclassfile.parse0(directclassfile.java:472) @ com.android.dx.cf.direct.directclassfile.parse(directclassfile.java:406) @ com.android.dx.cf.direct.directclassfile.parsetointerfacesifnecessary(directclassfile.java:388) @ com.android.dx.cf.direct.directclassfile.getmagic(directclassfile.java:251) @ com.android.dx.command.dexer.main.parseclass(main.java:764) @ com.android.dx.command.dexer.main.access$1500(main.java:85) @ com.android.dx.command.dexer.main$classparsertask.call(main.java:1684) @ com.android.dx.command.dexer.main.processclass(main.java:749) ... 12 more 2 errors; aborting  2.* went wrong:    execution failed task ':app:transformclasseswithdexfordebug'. > com.android.build.api.transform.transformexception: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program    files\java\jdk1.8.0_20\bin\java.exe'' finished non-zero exit value 1 

i tried adding apply plugin: 'java' no luck

also exported jar jdk 1.8.0_20 using same version in android studio

build.gradel

apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2"  defaultconfig {     applicationid "in.automator.automator"     minsdkversion 18     targetsdkversion 23     versioncode 1     versionname "1.0"     multidexenabled true } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     }     debug {         debuggable true     } } }dependencies { testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile files('src/main/java/in/automator/automator/marf.jar')} 

settings.gradel

include ':app' 

thanks in advance.

check settings.gradle , build.gradle files, , see if have included reference twice.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -