OutOfMemoryError on building for android

When I try to build my extension project for android I get this error:

jar cf /tmp/job118723987979741392/build/tmpf6987bc9-6dd7-4c52-8123-93b6a9d22126rjava/R.jar -C /tmp/job118723987979741392/build/tmpf6987bc9-6dd7-4c52-8123-93b6a9d22126rjava/classes .

dx --dex --output /tmp/job118723987979741392/build/classes.dex ...many jars...

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded

	ext.manifest	/extension-my/content/my	Unknown	Problem

I suspect that’s due to the fact that I use a lot of jar files. If I remove google play services jars (acquired from admob extension) I don’t get the error.

It might be that Java has insufficient memory for the building process, which can be increased with the javaMaxHeapSize setting.

Can you please look into that?

5 Likes

Sorry for the non-response, the native-extension-master @sven will be back at the office on monday and can help you out

/Johan

2 Likes

Sorry! Yes, this sounds like something we should fix on the server side! I’ll take a look at it on monday.

3 Likes

Awesome! Looking forward to that.
Thanks for the reply even when you are out of office!

3 Likes

Any progress on that?

2 Likes

Yes, Java heap size should be increased in next version. Beta should land beginning of next week, and stable soon after that. I think it should already be available in the alpha version and Editor 2.

6 Likes