在当前工程目录中 gradle.properties 添加
org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m
http://stackoverflow.com/questions/30045417/android-studio-gradle-could-not-reserve-enough-space-for-object-heap/31760855#31760855
转载于:https://www.cnblogs.com/kingxiaozi/p/4748433.html