Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29537

react-native run-android command errors with java.lang.outofmemoryerror

$
0
0

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': enter image description here

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.


Viewing all articles
Browse latest Browse all 29537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>