Android Studio Gradle project "Unable to start the daemon process /initialization of VM"
Solution 1:
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
Solution 2:
Do Following steps:
- Start Android Studio.
- Close any open project.Go to File > Close Project.(Welcome window will open)
- Go to Configure > Settings.
- On Settings dialog,select Compiler (Gradle-based Android Projects) from left and set VM Options to -Xmx512m(i.e. write -Xmx512m under VM Options:) and press OK.
Solution 3:
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.