把gradle.properties中的“MaxPermSize=256m” 改为 “-Xmx512m”就好了如:org.gradle.Jvmargs=-Xmx2048m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8