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
Step 1 . Go to : Configure > Settings > Build, Execution, Deployment > Compiler
Step2. Input the “-Xmx512m” to Additional build process VM options fields.