MANISH PATHAK
MANISH PATHAK

Reputation: 2650

Android Studio 2.0, org.gradle.process.internal.ExecException: Process 'command Error finished with non-zero exit value 3

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.

Already enabled

   multiDexEnabled true

in build.gradle.

Did anyone face this issue?

Upvotes: 1

Views: 2137

Answers (2)

袁胜红
袁胜红

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

MANISH PATHAK
MANISH PATHAK

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

Related Questions