Unable to execute dex: Java heap space Java heap space
The accepted solution to this post worked for me:Conversion to Dalvik format failed: Unable to execute dex: Java heap space
The gist is: Keep increasing the Xms and Xmx values until it either works or you run out of physical memory.
E.g.:-XX:MaxPermSize=1536m-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx1536m