Invalid maximum heap size: -XX:MaxHeapSize=4096m

Hello,
I just installed UE4 and was trying to launch a demo on my Android phone. I set the location of the SDK, launched the AndroidSetup.bat to download the NDK and then specified the path. But now when i’m compiling the project I have an error caused by JAVA that I’m not able to solve. So I need your help ! Do you have an idea of what may cause that ? I updated JAVA but still the same error.

I just needed to migrate to Java 64bit. My Java 32bit was limited to 2GB heap size.

anyone hava a fix for this?