Lock file: C:\Users\XXX\.gradle\caches\modules-2\modules-2.lock

今天运行AS打开项目突然报如下错误:

Error:Timeout waiting to lock artifact cache (C:\Users\1.gradle\caches\modules-2). It is currently in use by another Gradle instance.
Owner PID: 3564
Our PID: 18860
Owner Operation:
Our operation:
Lock file: C:\Users\XXX\.gradle\caches\modules-2\modules-2.lock

经过分析:
原因是 进程占用
解决方法:重启AS
OK 解决

你可能感兴趣的:(Lock file: C:\Users\XXX\.gradle\caches\modules-2\modules-2.lock)