Please use the solution provided here:
https://stackoverflow.com/questions/60468693/java-outofmemoryerror-when-building-aosp-10/60474592#60474592
It worked for me. I used m -j1 to be on the safer side.
On Tuesday, May 15, 2018 at 8:53:55 PM UTC+5:30 nit0...@gmail.com wrote:
> Well I have been
See https://source.android.com/setup/build/requirements#hardware-requirements
The RAM/swap listed there is the bare minimum. I recommend even more.
On Tuesday, May 15, 2018 at 8:23:55 AM UTC-7, Yogi nit wrote:
>
> Well I have been compiling roms on 4gb system with 8gb swap.
> I also had problem