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 选项;
弹出如下图所示的弹框:
点击红色标注的选项。
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 选项;
弹出如下图所示的弹框:
点击红色标注的选项。
相关文章推荐
- Error:Timeout waiting to lock cp_proj class cache for build file 'D:\androidw\TuYeLiangPin\app\bui
- 报错 Error:Timeout waiting to lock cp_proj class cache for build file 'D:\androidw\TuYeLiangPin\app\b
- Android Studio导入项目报:Timeout waiting to lock cp_proj class cache for build file 错误
- 报错Error:Timeout waiting to lock cp_proj class cache for build file 'D:\rainbow\rainbow2b\app\build.g
- Error:Timeout waiting to lock proj class cache for build file '/Users/Jaycee/AndroidStudioProjects/H
- Anroid studio遇到的问题5--Gradle sync failed: Timeout waiting to lock cp_proj class cache for build
- Anroid studio遇到的问题5--Gradle sync failed: Timeout waiting to lock cp_proj class cache for build
- 【我的Android进阶之旅】解决AndroidStudio编译时报错:Timeout waiting to lock artifact cache .
- Failed to read candidate component class: file [D:\workspace\j2ee\springdemo-forsimple-3\build\class
- 5. Gradle sync failed: Timeout waiting to lock cp_proj class cache for build
- ORA-04021: timeout occurred while waiting to lock object
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- spring错误处理 Build path is incomplete. Cannot find class file for org.springframework.aop.Advisor
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- Another app is currently holding the yum lock; waiting for it to exit
- yum提示another app is currently holding the yum lock;waiting for it to exit
- 关于ORA-04021得解决办法(timeout occurred while waiting to lock object)
- yum提示another app is currently holding the yum lock;waiting for it to exit
- yum提示another app is currently holding the yum lock;waiting for it to exit
- xib This file is set to build for a version older than the project deployment target解决方法