im trying to compile AOSP systemimage for android 7.1.2 r4 and i seem to have worked the first compilation errors due to flex being out of date and not maintained in the repo.
But now jack is destroying my memory. i read that nougat could be compiled with 4gb ram and im sure you can but how.
some of the things i have done....
export jack arguments
export java heap options
made a huge swapfile
the build gets to 40% before the memory starts hemhoraging. I persistantly perform the jack tricks and hit make again but it will only go 20 more compilation counters before stopping again and theres no way i can keep that up.
short of buying and replacing the ddr ram in my laptop is there any thing else i can do?