another app:dexDebug error Android Studio -
i have working project , want implement new library name seamless ad network api. while add api in dependencies , build no problems, try debug app , gives error below.
error:execution failed task ':app:dexdebug'. >com.android.ide.common.process.processexception: org.gradle.process.internal. execexception: process 'command 'c:\program files\java\jdk1.8.0_31\bin\java.exe'' finished non-zero exit value 3
i tried different solutions mentioned in similar stackoverflow questions no luck! have tried adding multidexenabled true didnt work have tried adding compile 'com.android.support:multidex:1.0.0' didnt work have tried comment out other jar files mentioned in dependencies didnt work. wrong this?
here build.gradle in app
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion android_build_tools_version defaultconfig { minsdkversion android_build_min_sdk_version targetsdkversion android_build_target_sdk_version multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } repositories { maven { url "http://maven.seamlessapi.com:8081/nexus/content/repositories/releases/" } } dependencies { compile 'com.android.support:appcompat-v7:18.0.+' //compile files('libs/picasso-2.5.0.jar') compile project(':libraries:cropimagelib') compile project(':libraries:facebook-android') compile project(':libraries:nineoldlibs') compile project(':libraries:slidingmenu') compile files('libs/jtransforms-3.0.jar') compile files('libs/jlargearrays-1.2.jar') compile files('libs/gdata-core-1.0.jar') compile 'com.android.support:recyclerview-v7:+' compile 'com.android.support:support-v4:18.0.+' compile 'com.goseamless:seamless:2.4.0' compile 'com.android.support:multidex:1.0.0' }
here full error log
:app:generatedebugsources up-to-date :app:compiledebugjava up-to-date :app:packagealldebugclassesformultidex up-to-date :app:shrinkdebugmultidexcomponents up-to-date :app:createdebugmaindexclasslist up-to-date :app:dexdebug unexpected top-level error: java.lang.outofmemoryerror: java heap space @ java.util.bitset.initwords(bitset.java:166) @ java.util.bitset.<init>(bitset.java:161) @ com.android.dx.ssa.ssamethod.bitsetfromlabellist(ssamethod.java:137) @ com.android.dx.ssa.ssabasicblock.newfromrop(ssabasicblock.java:161) @ com.android.dx.ssa.ssamethod.convertroptossablocks(ssamethod.java:173) @ com.android.dx.ssa.ssamethod.newfromropmethod(ssamethod.java:103) @ com.android.dx.ssa.ssaconverter.converttossamethod(ssaconverter.java:44) @ com.android.dx.ssa.optimizer.optimize(optimizer.java:98) @ com.android.dx.ssa.optimizer.optimize(optimizer.java:72) @ com.android.dx.dex.cf.cftranslator.processmethods(cftranslator.java:297) @ com.android.dx.dex.cf.cftranslator.translate0(cftranslator.java:137) @ com.android.dx.dex.cf.cftranslator.translate(cftranslator.java:93) @ com.android.dx.command.dexer.main.processclass(main.java:729) @ com.android.dx.command.dexer.main.processfilebytes(main.java:673) @ com.android.dx.command.dexer.main.access$300(main.java:83) @ 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:505) @ com.android.dx.command.dexer.main.runmultidex(main.java:334) @ com.android.dx.command.dexer.main.run(main.java:244) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) error:execution failed task ':app:dexdebug'. > com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.8.0_31\bin\java.exe'' finished non-zero exit value 3
ok have found answer. when anand singh asked full error log, have got clue. java.lang.outofmemoryerror: java heap space have found solution. adding
dexoptions { javamaxheapsize "2048m" }
thanks dhruv android studio google jar file causing gc overhead limit exceeded error
Comments
Post a Comment