Reputation: 2650
I am experimenting with the new android studio IDE 2.0 , Project was working fine with studio 1.5 . After Migration I am geeting the following Error-
:app:transformClassesWithDexForDebug FAILED
FAILURE: Build failed with an exception.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/manishpathak/AndroidStudioProjects/jdk1.7.0_80.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3 ' BUILD FAILED
Already enabled
multiDexEnabled true
in build.gradle.
Did anyone face this issue?
Upvotes: 1
Views: 2137
Reputation: 1
i just added this ,and then its all ok and my issue was solved :
/* compile 'com.android.support:support-v4:19.1.0' */
Upvotes: 0
Reputation: 2650
Thanks All. The following solution fixed my issue- Java wanted more space to build the project. I found the java process and analysed after 1 GB, process halted. Java needs more memory.
FIXED SOLUTION: Increased the HEAP size to 2g or 4g.
android {
defaultConfig {}
dexOptions {
javaMaxHeapSize "4g"
}
packagingOptions {
}
buildTypes {
} }
Upvotes: 2