java - Gradle error - Execution failed for task ':app:dexDebug' javax.money -
i trying import javax.money library obtain error time. don't want mess around gradle don't know it. please me have try lots of combination , solutions other post none work. gradle log:
information:gradle tasks [:app:assembledebug] :app:prebuild up-to-date :app:predebugbuild up-to-date :app:compiledebugndk up-to-date :app:checkdebugmanifest :app:prereleasebuild up-to-date :app:preparecomandroidsupportappcompatv72200library up-to-date :app:preparecomandroidsupportsupportv42200library up-to-date :app:preparecomgoogleandroidgmsplayservices700library up-to-date :app:preparecomgoogleandroidgmsplayservicesads700library up-to-date :app:preparecomgoogleandroidgmsplayservicesanalytics700library up-to-date :app:preparecomgoogleandroidgmsplayservicesappindexing700library up-to-date :app:preparecomgoogleandroidgmsplayservicesappstate700library up-to-date :app:preparecomgoogleandroidgmsplayservicesbase700library up-to-date :app:preparecomgoogleandroidgmsplayservicescast700library up-to-date :app:preparecomgoogleandroidgmsplayservicesdrive700library up-to-date :app:preparecomgoogleandroidgmsplayservicesfitness700library up-to-date :app:preparecomgoogleandroidgmsplayservicesgames700library up-to-date :app:preparecomgoogleandroidgmsplayservicesgcm700library up-to-date :app:preparecomgoogleandroidgmsplayservicesidentity700library up-to-date :app:preparecomgoogleandroidgmsplayserviceslocation700library up-to-date :app:preparecomgoogleandroidgmsplayservicesmaps700library up-to-date :app:preparecomgoogleandroidgmsplayservicesnearby700library up-to-date :app:preparecomgoogleandroidgmsplayservicespanorama700library up-to-date :app:preparecomgoogleandroidgmsplayservicesplus700library up-to-date :app:preparecomgoogleandroidgmsplayservicessafetynet700library up-to-date :app:preparecomgoogleandroidgmsplayserviceswallet700library up-to-date :app:preparecomgoogleandroidgmsplayserviceswearable700library up-to-date :app:preparedebugdependencies :app:compiledebugaidl up-to-date :app:compiledebugrenderscript up-to-date :app:generatedebugbuildconfig up-to-date :app:generatedebugassets up-to-date :app:mergedebugassets up-to-date :app:generatedebugresvalues up-to-date :app:generatedebugresources up-to-date :app:mergedebugresources up-to-date :app:processdebugmanifest up-to-date :app:processdebugresources up-to-date :app:generatedebugsources up-to-date :app:compiledebugjava note: input files use unchecked or unsafe operations. note: recompile -xlint:unchecked details. :app:predexdebug unexpected top-level exception: 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.processclass(main.java:704) @ com.android.dx.command.dexer.main.processfilebytes(main.java:673) @ com.android.dx.command.dexer.main.access$300(main.java:82) @ com.android.dx.command.dexer.main$1.processfilebytes(main.java:602) @ 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:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:279) @ com.android.dx.command.dexer.main.run(main.java:245) @ com.android.dx.command.dexer.main.main(main.java:214) @ com.android.dx.command.main.main(main.java:106) ...while parsing javax/money/abstractcontext.class 1 error; aborting error:execution failed task ':app:predexdebug'. com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home/bin/java'' finished non-zero exit value 1 information:build failed information:total time: 32.048 secs information:1 error information:0 warnings information:see complete output in console and gradle build
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion "21.1.1" defaultconfig { applicationid "com.android.myapp" minsdkversion 15 targetsdkversion 21 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile 'com.android.support:appcompat-v7:22.0.0' compile 'com.google.android.gms:play-services:7.0.0' compile 'javax.money:money-api:1.0-rc3' compile 'com.googlecode.libphonenumber:libphonenumber:7.0.4' } i believe has abstractcontent.class don't know how solve it. thank time.
Comments
Post a Comment