Search code examples
javaandroidjvmdaemon

Android Studio Gradle project “Unable to start the daemon process”


I am following this link Android Studio Gradle project "Unable to start the daemon process /initialization of VM" to solve my problem. The solution states that I open Compiler (Gradle-based Android Projects), but i can't find this option anywhere. There is an image to show where is should make the changes but my left side of the panel look nothing like that. It has limited options. I followed exactly as told till the 3rd step but still my left side menu are completely different than in the picture. As of now i am adding "org.gradle.jvmargs=-Xmx512m" to each of my project which is tedious. Could someone please tell me where that Compiler(Gradle-based Android Projects) is located at??


Solution

  • Do this.

    1. File ->
    2. Other Settings ->
    3. Default Settings ->
    4. Build, Execution, Deployment ->
    5. Compiler

    Then change Build process heap size (Mbytes) to 1024 and Additional build process VM options to -Xmx1024m.

    Finally restart Android Studio.