1

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.

Community
  • 1
  • 1
Droidekas
  • 3,464
  • 2
  • 26
  • 40

2 Answers2

0

we had the same problem a while ago, it turns out we have some errors in the RAM of the server we were useing. So I suggest you to run some tests on you server.

As for your question, 1GB RAM for the entire system or just for your project.

P.S. - Sorry for my ENG, it isn't that good, I hope this will help somehow.

Tony
  • 72
  • 1
  • 8
0

So I managed to to make this work. providing a 512 mb swap memory managed to assemble the app.Although it takes about 8~9 minutes.

I wont accept this answer hoping that there is a better solution.

Droidekas
  • 3,464
  • 2
  • 26
  • 40