i follow the above guide to compile the android source.
but it show "out of memory" error.
PRODUCT_COPY_FILES frameworks/base/data/keyboards/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES system/core/rootdir/init.usb.rc:root/init.usb.rc ignored.
Starting build with ninja
ninja: Entering directory `.'
[ 0% 1/19186] Ensure Jack server is installed and started
Jack server already installed in "/home/xxx/.jack-server"
Server is already running
[ 0% 2/19186] Building with Jack: out...k_intermediates/with-local/classes.dex
FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
Out of memory error (version 1.2-a19 'Carnac' (273701 529d8aaa49136d9c1350c27a5db9134354ed83a1)).
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.
make: *** [ninja_wrapper] Error 1
please give some suggestion, thanks.