Gradle Create project failed Unable to start the daemon process

Occasionally When I create a new Gradle project with the wizard I get this error

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at
Please read the following process output to find out more:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Could not fetch model of type 'HierarchicalEclipseProject' using Gradle installation 'C:\App\gradle-2.5'.

A simple solution is check your memory usage, and make sure the free memory is over 1GB, you can close some programs to free memory.

By default, when starting the Daemon JVM process, the Xmx parameter which specifies the max heap size used by JVM is -Xmx1024m.

This is max heap size, the Daemon actually usually only uses like less than 100m of memory. But it looks like to start JVM you still need over 1024m free system memory.

But I also noticed that to start JVM with -Xmx1024m don't actually need so much system free memory.

The conclusion is to start a default Gradle Daemon JVM will fail in some situations, you can solve by freeing some system memory.