Moon Light Box

Time is Money

Android - finished with non-zero exit value 3

| Comments

Gradle build error message:

When your Android project contains too many class, Android Studio will throw non-zero exit value 3 during dex apk period.

Error:org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 3

Solution:

Add below configure in build.gradle file.

dexOptions {
    javaMaxHeapSize "4g"
}

Reference:http://stackoverflow.com/questions/31605291

Comments

comments powered by Disqus