java.lang.OutOfMemoryError

Here’s a solution for Editor 1: Android build fails with Java heap space error

Also check this thread for a similar Editor 2 issue: java.lang.OutOfMemoryError: Java heap space in Editor 2