android studio :Timeout waiting to lock daemon addresses registry

一、开发中 android studio 突然遇到下面的错误提示:

Error:Timeout waiting to lock daemon addresses registry. It is currently in use by another Gradle instance.

Owner PID: unknown
Our PID: 11300
Owner Operation: unknown
Our operation: 

Lock file: D:\gradle-repo\daemon\2.14.1\registry.bin.lock

 

二、解决 

D:\gradle-repo\daemon\2.14.1\ 下的 registry.bin.lock  删除就好了。

删除的时候会提示文件被占用。开打进程管理器把关于java的进程结束后,在Android Stuido中重新build就可以。

点赞