Could not dispatch a message to the daemon

for me it was about GRADLE_HOME environmental variable. I hadn't set GRADLE_HOME.

these steps might help:

  1. point to advanced system settings -> environmental variables
  2. make an environmental variable named "GRADLE_HOME"
  3. give the address of your gradle file (you can find it on Users -> YOUR_USER_NAME -> .gradle -> GRADLE_VERSION (like: 4.4) or if you didn't find it here, you can download one from https://services.gradle.org/distributions/ and extract it in the path mentioned and give it's directory address for the GRADLE_HOME variable.

I solved my issue by installing the version 8 of the OpenJDK Hotspot JVM. Previously I was using version 11 of the OpenJDK OpenJ9 JVM. Not sure if it's because I went from V11 to V8 or from OpenJ9 to Hotspot.


Try restarting the daemon. Perhaps it was killed for some reason

gradle --stop && gradle clean build