Skip to content Skip to sidebar Skip to footer

Execution Failed For Task ':transformclasseswithdexfordebug'

I've migrated to Android Studio 2.0 Preview and I'm getting, no matter what I do, : Error:Execution failed for task ':transformClassesWithDexForDebug'. com.android.build.api.tran

Solution 1:

In your build.gradle script, set the dexOptions.javaMaxHeapSize configuration to whatever value you need:

android {
//snip
//add this into your existing 'android' block
  dexOptions {
    javaMaxHeapSize "4g"
  }
//snip
}

Source

Post a Comment for "Execution Failed For Task ':transformclasseswithdexfordebug'"