gradle 最近经常卡build Runing
mac电脑可以看见类似错误打印在控制台,win10系统都不告诉你,默默地卡住。
* What went wrong:
Gradle could not start your build.
> Cannot create service of type BuildTreeActionExecutor using method LauncherServices$ToolingBuildTreeScopeServices.createActionExecutor() as there is a problem with parameter #1 of type List<BuildActionRunner>.
> Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal().
> Timeout waiting to lock journal cache (C:\Users\XXX\.gradle\caches\journal-1). It is currently in use by another Gradle instance.
Owner PID: 8128
Our PID: 14108
Owner Operation:
Our operation:
Lock file: C:\Users\XXX\.gradle\caches\journal-1\journal-1.lock
win10的.gradle/daemon目录下面可以看见日志,顺便gradle还dump了内存,mac没有,很大,没几天估计就满c盘了。
查8128进程,可以发现是一个java程序
在project Structure 重设置gradle jdk 11.0.11版本。
重设之后暂无发现卡住异常。