Nuno Antunes
Nuno Antunes

Reputation: 49

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

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.

Upvotes: 2

Views: 12477

Answers (3)

Md Manna
Md Manna

Reputation: 61

just disable antivirus then try again ;)

Upvotes: -1

Azorimor
Azorimor

Reputation: 73

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.

Upvotes: 4

mjn42
mjn42

Reputation: 840

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.

Upvotes: 1

Related Questions