Setting to one build at a time might not be enough.
Check 
out 
http://stackoverflow.com/questions/35579646/android-source-code-compile-error-try-increasing-heap-size-with-java-option
You have to increase the -Xmx in the startup command for the jack server. 
For me this did not work through setting the env 
var JACK_SERVER_VM_ARGUMENTS to include it; seems like it does not get 
passed on correctly. Solution is to set the envVar, kill and start the jack 
server manually and THEN run the build.

https://source.android.com/source/jack.html unfortunately is really 
outdated, hope it gets updated soon^^

On Tuesday, May 24, 2016 at 7:17:44 PM UTC+2, Eric Tang wrote:
>
> I think you can edit the file ~/.jack-settings
> add SERVER_NB_COMPILE=1
>
> you can adjust the no., but my PC doesn't work on anything more than 1...
> and finally restart jack server
>
> On Sunday, May 22, 2016 at 1:27:46 AM UTC+8, 伍小二 wrote:
>>
>> when I compile the android 6.0 source code,  encounter the following 
>> problem
>>
>>
>> FAILED: /bin/bash 
>> out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/dex-dir/classes.dex.rsp
>> Out of memory error (version 1.2-rc3 'Carnac' (298500 
>> fea776d029fb8ceb9dfa1e7c354e03ac4c3597de by android-...@google.com)).
>> GC overhead limit exceeded.
>> Try increasing heap size with java option '-Xmx<size>'.
>> Warning: This may have produced partial or corrupted output.
>> ninja: build stopped: subcommand failed.
>> build/core/ninja.mk:146: recipe for target 'ninja_wrapper' failed
>> make: *** [ninja_wrapper] Error 1
>>
>>
>>
>> How to solve it, Thank YOU!
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to