Gradle 守护进程 Android 工作室:"Unable to start the daemon process"

Gradle Daemon Android Studio: "Unable to start the daemon process"

我有问题。我一直在 Android Studio 中开发应用程序,从来没有遇到过问题,但现在我遇到了以下错误:

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

我已经在 gradle.properties 中更改了以下行

org.gradle.jvmargs=-Xmx1536m

org.gradle.jvmargs=-Xmx1024m

我也删除了用户中的文件夹.gradle

检查您的本地防火墙。我发现我的 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没有被防火墙屏蔽。

我在 Windows 10 Home 上使用 BullGuard 的防火墙。也许有更好的方法来解决这个问题,因为我实际上不想每次使用 gradle 和 java.

开始编程时都禁用防火墙

至少这在开始时工作得很好。

只需禁用防病毒软件,然后重试 ;)