您的位置:首页 > 产品设计 > UI/UE

Timeout waiting to lock cp_proj class cache for build file

2016-11-07 14:04 531 查看
今天build项目时出现了以下异常信息:

Error:Timeout waiting to lock cp_proj class cache for build file 'E:\myta\MyApplication\app\build.gradle' (C:\Users\Admin\.gradle\caches\2.10\scripts\build_d6jluygc05cy2mzxu989rkkq0\cp_proj). It is currently in use by another
Gradle instance.

Owner PID: unknown

Our PID: 14796

Owner Operation: unknown

Our operation: Initialize cache

Lock file: C:\Users\Admin\.gradle\caches\2.10\scripts\build_d6jluygc05cy2mzxu989rkkq0\cp_proj\cache.properties.lock

解决方法:

1,删掉上面信息中的红色字体中的文件即可。(先关闭studio,再删除)。

2,清理studio缓存。(网上说这样也可以解决,我没试,用的第一种方法解决的)

顺便记录一下如何清理缓存:

选择一个正在运行的项目,点击file选项:选择Incalidata Caches/Restart 选项;



弹出如下图所示的弹框:



点击红色标注的选项。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐