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 space for
object heap.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file,
sets the maximum Java heap size to 1,024 MB:
org.gradle.jvmargs=-Xmx1024m
my default org.gradle.jvmargs=-Xmx2048
and MaxPermSize=512m
still it is showing me this error, can anybody tell me why I am getting this error?