导入项目出现Java多个工程相互引用异常A cycle was detected in the build path of project的解决办法
作者:执笔记忆的空白 时间:2023-06-26 16:27:17
将一个项目导入最烦的是遇到各种报错,前段时间搞的一个项目,各个功能模块单独作为一个工程,然后不同工程之间相互调用,这里会报这么一个·错误a cycle was detected in the build path of project,这个错误是因为eclipse默认的编译提示级别过高造成的,只要将编译级别降低即可,之后项目即可正常编译。
现在分享下方案:
1、Eclipse/STS -> Window -> Preferences... -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> 将Error改成Warning
2、或者查看工程之间是否真的需要循环引用,不需要的话去掉。
然后重新对项目进行clean
一下,项目编译成功。
尝试了下,确实好使,推荐!
总结
标签:java,互相引用,异常
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
java开源项目jeecgboot的超详细解析
2023-07-19 03:30:53
![](https://img.aspxhome.com/file/2023/7/71677_0s.png)
Springboot使用@RefreshScope注解实现配置文件的动态加载
2022-06-11 10:06:00
![](https://img.aspxhome.com/file/2023/9/69909_0s.jpg)
Java中Request请求转发详解
2021-05-25 20:53:42
![](https://img.aspxhome.com/file/2023/8/61538_0s.png)
Android开发实现图片的上传下载
2022-10-21 03:41:10
![](https://img.aspxhome.com/file/2023/1/97871_0s.jpg)
spring中ioc是什么
2023-07-24 05:38:40
![](https://img.aspxhome.com/file/2023/1/88081_0s.png)
Java针对ArrayList自定义排序的2种实现方法
2022-01-30 03:47:34
android View 绘制完成监听的实现方法
2023-08-06 20:47:05
C#中使用DevExpress中的ChartControl实现极坐标图的案例详解
2022-12-05 06:30:39
![](https://img.aspxhome.com/file/2023/2/104232_0s.png)
Android中Spinner(下拉框)控件的使用详解
2021-08-09 01:46:28
![](https://img.aspxhome.com/file/2023/3/139123_0s.jpg)
spring mvc+localResizeIMG实现HTML5端图片压缩上传
2023-07-11 15:31:51
WeakHashMap 和 HashMap 区别及使用场景
2022-06-25 02:16:15
![](https://img.aspxhome.com/file/2023/4/118894_0s.png)
一文搞懂并学会使用SpringBoot的Actuator运行状态监控组件的详细教程
2022-01-31 10:28:23
![](https://img.aspxhome.com/file/2023/8/67488_0s.png)
浅谈hibernate急迫加载问题(多重外键关联)
2023-08-18 12:58:54
![](https://img.aspxhome.com/file/2023/2/65202_0s.png)
SpringBoot整合Shiro框架,实现用户权限管理
2021-10-27 00:03:02
Java执行hadoop的基本操作实例代码
2022-11-13 12:08:04
基于android studio的layout的xml文件的创建方式
2022-10-31 10:52:06
![](https://img.aspxhome.com/file/2023/3/138563_0s.jpg)
Android 模仿QQ侧滑删除ListView功能示例
2023-10-27 21:03:43
Java的反射机制---动态调用对象的简单方法
2023-08-16 19:23:26
Opencv光流运动物体追踪详解
2023-06-21 11:55:31
![](https://img.aspxhome.com/file/2023/4/91994_0s.jpg)
Springboot初始化项目并完成登入注册的全过程
2023-07-31 15:09:09
![](https://img.aspxhome.com/file/2023/8/57948_0s.png)