Gradle sync failed: Unable to start the daemon process.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a924068818/article/details/81285742

Gradle sync failed: Unable to start the daemon process.

以下是我遇到的问题

    Gradle sync failed: 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

国内搜索出来的解决方案都是修改org.gradle.jvmargs=-Xmx2048m ,但是实际上并没有效果,
找到gradle的日志目录下,发现真正的错误是:

    java.net.BindException: Address already in use: bind

解决办法:

  1. 你的电脑应该是开了热点,关闭热点再尝试,
  2. 如果没有开热点,重启电脑应该能解决。

我是第一种方式就解决了

猜你喜欢

转载自blog.csdn.net/a924068818/article/details/81285742