简体   繁体   中英

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??

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 .

A temporary solution is to disable the firewall (or ajust some rules, which I don't know).

At least that helped me. I am still looking for a permanent solution. However, this is better than nothing for the beginning.

i am facing this problem multiple time, whenever I invalidate and restart and then clean project and rebuilt all issues has been resolved. this happened due to poor specification of pc or missing any of the recommendation of google android developers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM