I am getting this error when am trying to build an android with jenkins. I do not think the error is jenkins related.
Execution failed for task ':app:preDexProductionDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-oracle/bin/java'' finished with non-zero exit value 137
the command that i am trying to execute (ProductionDebug is a flavour)
./gradlew clean assembleProductionDebug --stacktrace
Edit 1 So I figured that this was an Out Of Memory Error from this Q/A
and the Jenkins Wiki also catalogs it here
Now my question is: Is it possible to run an android build with 1gb RAM?
Edit 2
I tried with with java 7u25 too,now the whole system becomes unresponsive and requires a restart from the AWS console.