Could not receive a message from the daemon.

Android Studio Run报错:

1
2
3
4
5
6
7
8
9
10
FAILURE: Build failed with an exception.

* What went wrong:
Could not receive a message from the daemon.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Exception: Gradle task assembleDebug failed with exit code 1

解决方案

如果热点开着,则关闭Windows 10的热点可能可以解决问题。当然导致这个问题的原因可能不止一种。

参考资料

1
Is your mobile hotspot enabled? if you use de windows 10 mobile hotspot brings the error in my computer, disabled and try it, run normally.
  1. Could not receive a message from the daemon