Thanks for this post @tcecyk. It inspired me to play with java max heap values in my build scripts. After a little experimentation, I found a value -Xmx1G
allowed my builds of LOS 19.1 / Android 13 to succeed on my build machine with only 16GB RAM and a Dual-Core Intel Core i5 CPU
I set the value by this from my build script:
ANDROID_JACK_VM_ARGS=-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx1G
Until now now I’ve been using powerful cloud virtual servers - 32v CPUs, 64GB ROM - to make my LOS 19 and 20 builds. Of course local builds are slower, but at least they are now possible. And I don’t have to worry about forgetting to destrpy the cloud VM, and running up large bills
Thanks again!