error "Out of memory" while compile android source codes

12,065 views
Skip to first unread message

tyout...@gmail.com

unread,
May 7, 2016, 10:05:46 PM5/7/16
to Android-rpi
https://github.com/peyo-hd/device_brcm_rpi3
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.
Message has been deleted

tyoutk

unread,
May 8, 2016, 2:16:43 AM5/8/16
to Android-rpi
Reply all
Reply to author
Forward
0 new messages