Error: Unable to start the daemon process:

advertisements

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</em>

Read Gradle's configuration guide

Read about Java's heap siz


Try this one.

Add this line at the end of your application gradle.properties

org.gradle.jvmargs=-Xmx512m -XX\:MaxPermSize\=512m