Android Studio creates a new project error

I created many projects without any problems, but today I continue to get the following error when creating a new

Gradle 'MyApplication' project refresh failed 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 https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap 

Any ideas on what's wrong?

+5
source share
1 answer

You have encountered the following error:

Error initializing VM. Failed to reserve enough space for the heap of objects 1572864KB

This means that the JVM is out of memory. Adding the following property to the gradle.properties file will fix your problem:

 org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m 
+24
source

All Articles