Exception in thread

Exception in thread
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space in Unreal Engine

How to fix Exception in thread "main" java.lang.OutOfMemoryError: Java heap space in Unreal Engine

  1. go to edit then choose Project Settings .
  2. scroll down to Platforms then choose Android .
  3. uncheck option Generate bundle (AAB) .