I am using Android studio 1.3.1 and getting this failed to sync Gradle project error :
Error:Unable to start the daemon process: could not reserve enough spa
try this way Open gradle.properties file.
gradle.properties
add this line at the end:
org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m
or
org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m