Android Issue Unable to start the daemon process


Solution 1
Start Android Studio.
Close any open project.Go to File > Othersettings > DefaultSettings.(a window will open)
  


On Settings dialog,select Android Compilers under Built, Execution, Deployment > Compiler and set VM Options to -Xmx512m(i.e. write -Xmx512m under VM Options:) and press OK.





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

Solution 3

Add an environment variable by going in mycomputer>properties>advance system settings like




There select environment variable and add GRADLE_OPTS with the value of -Dorg.gradle.jvmargs=-Xmx512m as like below



Hope this also help.

Leave a Reply

Your email address will not be published. Required fields are marked *