Try increasing Gradle JVM memory...