Gradle Daemon Android Studio: “Unable to start the daemon process”

大兔子大兔子 提交于 2020-02-05 05:52:06

问题


I am having a problem. I have always developed applications in Android Studio and never had a problems, but now I had the following error:

Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used.

Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html

I already changed in gradle.properties the following line

org.gradle.jvmargs=-Xmx1536m

to

org.gradle.jvmargs=-Xmx1024m

I also delete the folder .gradle in Users.


回答1:


Check your local firewall. I found an update of the firewall in my AV software to cause the same error. When I disable the firewall, the demon start succeeds.

I had the same problem on 3 different PCs. I disabled the firewall and everything worked just fine. Even if my IDE is not blocked by the firewall.

I am using BullGuard's firewall on Windows 10 Home. Maybe there is a better way to solve this problem, because I actually don't want to disable the firewall everytime I start programming with gradle and java.

At least this worked just fine for the beginning.




回答2:


Check your local firewall. I found an update of the firewall in my AV software to cause the same error. When I disable the firewall, the demon start succeeds.



来源:https://stackoverflow.com/questions/51644150/gradle-daemon-android-studio-unable-to-start-the-daemon-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!