Cannot lock Java compile cache (xxx)as it has already been locked by this process 解决办法
做单元测试运行的时候,遇到报错,报错信息如下:
Execution failed for task ‘:compileJava’.
'> Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().
'> Cannot lock Java compile cache (C:\Devin\code2\global-adapter\source.gradle\6.9.1\javaCompile) as it has already been locked by this process.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
首先是因为 build的时候冲突
C:\Devin\code2\global-adapter\source.gradle\6.9.1\executionHistory
解决办法:
方式1:进入该目录, 删除.lock文件
如果方式1还不行,可以试试第2种方式
方式2:终止GradleDaemon进程
win+R打开DOS窗口,输入jps命令查看GradleDaemon对应的进程号,输入“taskkill -PID 进程号 -F”命令终止该进程
如果方式1还不行,可以试试第3种方式
方式3:重启电脑
因为它已经被这个进程锁定,那就是有些进程占用的概念,那试试重启电脑吧
Cannot lock Java compile cache (xxx)as it has already been locked by this process 解决办法相关推荐
- Cannot lock Java compile cache as it has already been locked by this process.
在win10编译app 时报错: Cannot lock Java compile cache as it has already been locked by this process. 解决:在c ...
- Cannot lock Java compile cache (D:\Dev\AndroidClient\trunk\Weather\.gradle\6.5\javaCompile) as it ha
遇到的情景是这样的:我用AndroidStudio进行打包,莫名的出现了这样,记得之前都没这个情况的, 错误翻译过来是这样描述的:不能锁定Java编译缓存(D: Dev\AndroidClient\t ...
- ARCGIS开发中类型XXX在未被引用的程序集中定义的解决办法
ARCGIS开发中类型XXX在未被引用的程序集中定义的解决办法 分类: ArcGIS ARCGIS开发中出现了这样的错误:类型"ESRI.ArcGIS.DataSourcesRaster.I ...
- java.lang.IllegalStateException: No modifications are allowed to a locked ParameterMap问题的解决
java.lang.IllegalStateException: No modifications are allowed to a locked ParameterMap问题的解决 参考文章: (1 ...
- 异常:Error resolving template “xxx“, template might not exist or might not be accessible...解决办法
异常:Error resolving template "xxx", template might not exist or might not be accessible...解 ...
- 创建新Docker容器时出现“The container name /xxx is already in use by container xxxxxxxxxxx...”问题的解决办法
创建新Docker容器时出现"The container name "/xxx" is already in use by container xxxxxxxxxxx-& ...
- 创建新Docker容器时出现“The container name “/xxx“ is already in use by container xxxxxxxxxxx...”问题的解决办法
创建新Docker容器时出现"The container name "/xxx" is already in use by container xxxxxxxxxxx-& ...
- 表 ‘dbo.XXX’ 没有标识属性。无法执行 SET 操作 错误解决办法
表 'dbo.XXX' 没有标识属性.无法执行 SET 操作 错误解决办法 工作中,时不时会遇到导入数据的情况,对于自增列,SQL Server默认时不允许插入的.可以将IDENTITY_INSERT ...
- JDK下载、安装、运行第一个Java程序的过程以及javac不是内部或外部命令的解决办法
JDK下载.安装.运行第一个Java程序的过程以及javac不是内部或外部命令的解决办法 1.下载和安装JDK开发环境 下载地址:https://www.oracle.com/technetwork/ ...
最新文章
- TensorFlow教程之进阶指南 3.4 TensorBoard: 图表可视化
- 75 Zabbix中文乱码问题
- SRM 721 DIV2
- 扩展springmvc组件——当页面跳转时,需要在Controller里面创建一个空方法去跳转或者是创建一个配置类 ||日期格式化说明||自定义格式化器||消息转化器扩展fastjson
- pyqt5实现注册界面并获得文本框内容
- RxJS Functional Programming
- (转,记录用)jQuery页面加载初始化的3种方法
- python_正则表达式匹配ip
- 四叶草efi_Clover Configurator——四叶草配置引导工具
- python曲线库_测井曲线储量python库lasio解读使用
- OLS最小二乘法和2SLS两阶段…
- 26个英文字母(大小写)+10个数字
- 8.5.3耳麦拔插事件调用流程分析
- win7计算机无法最大化,win7系统窗口老是以最大化显示且不能还原的具体方法
- 轮船运输推动运输的飞跃 上海交航船务秉承运输的保障
- PMP计算题笔记(净现值、投资回收期、PERT、总价加激励、成本加激励)
- 学讲普通话水平测试软件,普通话智能学习软件
- 【牛投客】:让我们再来看看牛投客的战略网络
- 比swagger更好用的工具?强烈推荐这款零代码侵入的接口管理神器
- python处理文件的学习--实例:自动化的根据文本内容绘制图形