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 with jack. 
> So before compiling do this 
> As you said you have decreased service to 1, so it's fine. 
> then 
> # Stop the jack server if running 
>     jack-admin stop-server 
> # If you are starting jack manually then 
>
> JACK_SERVER_VM_ARGUMENTS="-Xmx2g -Dfile.encoding=UTF-8 
> -XX:+TieredCompilation" /path/to/jack-admin start-server 
>
>
> #If you use the jack server in the android tree then 
>
> export ANDROID_JACK_VM_ARGS="-Xmx2g -Dfile.encoding=UTF-8 
> -XX:+TieredCompilation 
>
> If this doesn't work change the -Xmx2g to -Xmx4g, increase it if it 
> doesn't work

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to