2 qq 25091195 qq_25091195 于 2017.09.15 14:29 提问

IDEA中gradle无法build或者refresh项目

build或者refresh的时候会卡在gradle:build这个步骤,然后daemon就超时了,错误提示如下
Error:Timeout waiting to connect to the Gradle daemon.
Daemon uid: 4aa9dc3c-21a2-4eec-97ab-4f498f453a32 with diagnostics:
Daemon pid: 3524
log file: C:\Users\Lancer.gradle\daemon\2.12\daemon-3524.out.log
----- Last 20 lines from daemon log file - daemon-3524.out.log -----
14:16:28.533 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
14:16:28.536 [LIFECYCLE] [org.gradle.launcher.daemon.server.Daemon] Daemon server started.
14:16:28.539 [DEBUG] [org.gradle.launcher.daemon.bootstrap.DaemonStartupCommunication] Completed writing the daemon greeting. Closing streams...
14:16:28.540 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] requestStopOnIdleTimeout(60000 MILLISECONDS) called on daemon
14:16:28.540 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Idle timeout: waiting for daemon to stop or be idle for 60000ms
14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Idle timeout: daemon has been idle for requested period. Stopping now.
14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Marking daemon stopped due to idle timeout. The daemon is running a build: false
14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] stop() called on daemon
14:16:28.541 [INFO] [org.gradle.launcher.daemon.server.Daemon] Stop requested. Daemon is removing its presence from the registry...
14:16:28.542 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Removing our presence to clients, eg. removing this address from the registry: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
14:16:28.543 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Removing daemon address: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
14:16:28.544 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
14:16:28.547 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
14:16:28.552 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
14:16:28.555 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Address removed from registry.
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
14:16:28.558 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Removing daemon address: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
14:16:28.558 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
14:16:28.561 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
14:16:28.563 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
----- End of the daemon log -----

项目是springboot,gradle环境变量和java环境变量都配置了,依赖库用的是公司的镜像库,网页都能直接打开。
这个问题我自己查了很久了,但是国内基本没人问过这个问题,仅有的几个提问,会打也是答非所问,国外倒是有几个回答,关防火墙啊,换依赖库啊,换本地gradle啊,然而并不能解决问题,公司里面好像也只有我的电脑有这个问题,难道是系统环境的锅?
问问各位大神有没有什么解决办法。

1个回答

caozhy
caozhy   Ds   Rxr 2017.09.15 23:46
Csdn user default icon
上传中...
上传图片
插入图片