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 文件