如果你在eclipse中遇到了Java的路径构建问题:
找到你的项目右键 -> Build Path -> Configure Build Path
点击Libraries -> 找到所有的前面有红色叉号的库
找到红色字段并复制下来:
The container 'Project and External Dependencies' references non existing library 'C:\Users\13529\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.15.0\4a5aa7e55a29391c6f66e0b259d5189aa11e45d0\log4j-api-2.15.0.jar'
从中我们可以得知是log4j-api-2.15.0.jar
这个包在C:\Users\13529\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.15.0\4a5aa7e55a29391c6f66e0b259d5189aa11e45d0\
的一个路径中缺失了。
我们需要先下载这个包:
apache-log4j-2.15.0,密码:dbau
之后把这个包中的log4j-core-2.15.0.jar放入该路径中:
右键刷新项目,我们发现所有的Problem都解除了!