Android - transform Classes With Dex For Debug -


my project working fine until added facebook dependency. i've started getting error. i've read many question, problem seems related multidex. none of solutions worked me

error:execution failed task ':app:transformclasseswithdexfordebug'. > com.android.build.api.transform.transformexception:  com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command  '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished non-zero exit value 1 

even after remove i've added, still show , gradle seems taking lot of time while building usual

here build.gradle

apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.3"  defaultconfig {     applicationid "net.ciblo.spectrodraft"     minsdkversion 15     targetsdkversion 23     versioncode 1     multidexenabled true  } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     testcompile 'junit:junit:4.12'  repositories {     mavencentral()     maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }  } compile 'com.facebook.android:facebook-android-sdk:[4,5)' compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:appcompat-v7:23.2.1' compile 'com.android.support:cardview-v7:23.2.1' compile 'com.android.support:design:23.2.1' compile 'com.daimajia.easing:library:1.0.1@aar' compile 'com.daimajia.androidanimations:library:1.1.3@aar' compile 'com.google.android.gms:play-services:8.4.0' compile 'com.mcxiaoke.volley:library-aar:1.0.0' compile 'com.pnikosis:materialish-progress:1.5' compile 'com.nineoldandroids:library:2.4.+' compile 'com.michaelpardo:activeandroid:3.1.0-snapshot' compile 'com.android.support:support-v4:23.2.1' compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'  } 

adding following code build.gradle app module solved problem

android{     defaultconfig {          // enabling multidex support.         multidexenabled true     }       dexoptions {         javamaxheapsize "4g"     } } dependencies {     //...     compile 'com.android.support:multidex:1.0.0' } 

Comments