timeout lock buildscript cache , It is currently in use by another Gradle instance.

Error:Timeout waiting to lock buildscript class cache for build file 'E:\xxx\app\build.gradle' (C:\Users\Administrator\.gradle\caches\2.2.1\scripts\build_837c7i6iyyvskowjqvasoz1fk\ProjectScript\buildscript). It is currently in use by another Gradle instance.

Owner PID: unknown

Our PID: 22532

Owner Operation: unknown

Our operation: Initialize cache

Lock file: C:\Users\Administrator\.gradle\caches\2.2.1\scripts\build_837c7i6iyyvskowjqvasoz1fk\ProjectScript\buildscript\cache.properties.lock


I was stuck with this error and had to blow away the contents of my user's.gradle/caches/folder and the contents of my project's.gradle/folder to get going again.

Not sure what caused it, possibly a failed build that kept these files in a locked state?


I'd deleted .gradle/caches/** and it works again.

gradle timeout报错, 删除项目目录下.gradle/2.2.1/taskArtifacts/cache.properties.lock 文件

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容