Android Studio Gradle project "Unable to start the daemon process /initialization of VM" Android Studio Gradle project "Unable to start the daemon process /initialization of VM" android android

Android Studio Gradle project "Unable to start the daemon process /initialization of VM"


The Solution Worked:

    1.Open the projects gradle.properties file in android studio
    2.Added this line at end of file org.gradle.jvmargs=-Xmx1024m & Save the file
    3.Close & reopen the project


Do Following steps:

  1. Start Android Studio.
  2. Close any open project.Go to File > Close Project.(Welcome window will open)
  3. Go to Configure > Settings.
  4. On Settings dialog,select Compiler (Gradle-based AndroidProjects) from left and set VM Options to -Xmx512m(i.e. write -Xmx512munder VM Options:) and press OK.

Where to put it


I had the same issue, it was because I had an existing ".gradle" folder and then I've played with the android studio version (and also with the Java jdk version) , and I guess it messed things up.

Solution: Remove the .gradle directory (mine's location was C:\Users\UserName\.gradle), and restart android studio. It will automatically create a new one.