我的新项目在第一次运行时显示此错误。我没有改变任何android创建的项目文件。 Android Studio 2.2版(金丝雀版本),Gradle版本2.14.1和插件版本2.2.0。Gradle编译失败,错误'等待连接到Grade守护程序的超时'
Error: Failed to complete Gradle execution.
Cause: Timeout waiting to connect to the Gradle daemon.
Daemon uid: c788c7c1-86fc-45e7-9981-345127b657de with diagnostics:
Daemon pid: 5044 log file: C:\Users\red\.gradle\daemon\2.14.1\daemon-5044.out.log
Unable to read from the daemon log file: C:\Users\red\.gradle\daemon\2.14.1\daemon-5044.out.log, because of: java.io.FileNotFoundException:
C:\Users\red\.gradle\daemon\2.14.1\daemon-5044.out.log
(The system cannot find the file specified)
注意:应用程序级别的build.gradle文件不会显示在Gradle脚本中。此外,该文件未在Android Studio中打开。 “构建项目”选项不会显示在“构建”菜单中(可能是因为构建不成功)。
请清理并重建项目。 – Hayk
重建,使项目等不起作用(重建项目和项目没有任何反应)。清理项目导致同样的错误。 –