I keep getting an out of memory error whenever I try and do react-native run-android
from within Visual Studio code. I've also tried just using the standard windows terminal but I get the same thing.
I've been looking at trying to increase it but it doesn't seem to help:
I've run javaw -XX:+PrintFlagsFinal | find "MaxHeapSize"
which gives me 268435456
I then tried to increase it via 'configure java':
But when I run the command again I get the same number back for the heap size and if I try react-native run-android again, I get the same error.