Gradle Daemon Android Studio:“无法启动守护进程” [英] Gradle Daemon Android Studio: "Unable to start the daemon process"
问题描述
我有问题。我一直在Android Studio中开发应用程序,从来没有遇到过问题,但是现在我遇到了以下错误:
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:
无法启动守护进程。此问题可能是由于守护程序
的配置错误引起的。例如,使用了无法识别的
jvm选项。
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.
请在
https://docs.gradle.org/4.4/userguide/gradle_daemon.html
我已经更改了 gradle.properties
以下行
org.gradle.jvmargs=-Xmx1536m
至
org.gradle.jvmargs=-Xmx1024m
我还删除了用户中的文件夹 .gradle
。
I also delete the folder .gradle
in Users.
推荐答案
检查您的本地防火墙。我在我的AV软件中发现防火墙的更新,导致同样的错误。当我禁用防火墙时,恶魔启动成功。
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.
我在3台不同的PC上遇到了相同的问题。我禁用了防火墙,一切正常。即使我的IDE未被防火墙阻止。
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.
我正在Windows 10 Home上使用BullGuard的防火墙。也许有更好的方法来解决此问题,因为我实际上不想在每次使用gradle和java进行编程时都禁用防火墙。
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.
这篇关于Gradle Daemon Android Studio:“无法启动守护进程”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!