简体   繁体   English

在解决构建路径错误之前无法构建项目(仍然)

[英]The project cannot be built until build path errors are resolved (still)

Every time I try to build (doing a full Clean and then build afterward) I get this error message popping up under Eclipse's Problems section. 每次我尝试构建(做一个完整的Clean然后构建)我会在Eclipse的Problems部分弹出这个错误消息。 The project itself also shows an error beside it. 项目本身也会显示错误。

I've tried everything contained in the other solutions to this exact same question: 我已经尝试了其他解决方案中包含的所有内容来完全相同的问题:

  1. Removing all libraries in project properties and re-adding them 删除项目属性中的所有库并重新添加它们
  2. Manually edit project.properties file, .classpath file, etc. 手动编辑project.properties文件, .classpath文件等。
  3. Performing full Clean and then build afterward 执行完全清洁然后再构建

This stubborn error message won't go away. 这个顽固的错误信息不会消失。 The problem is that the error doesn't tell me anything about what's messing up. 问题是错误并没有告诉我什么是搞乱的。 The Location says "Unknown", and that's all I have to go on. 位置说“未知”,这就是我必须继续下去。 No errors appear under any of the Build Path tabs. 任何“构建路径”选项卡下都不会显示任何错误。 Everything looks fine. 一切都很好看。

What the heck is going on?! 到底他妈发生了什么?!

UPDATE: Here's a screenshot of the 'Problems' tab: 更新:这是“问题”标签的屏幕截图:

问题标签

Look under 'Markers' tab, do you see any java build path issues there? 在“标记”选项卡下查看,您在那里看到任何java构建路径问题吗? Sometimes it complains about not having src/test/resources or other directories. 有时它抱怨没有src / test / resources或其他目录。

Restart Eclipse. 重启Eclipse。 It works for me! 这个对我有用!
You can also check with a new clean workspace if the above didn't work 如果以上操作无效,您还可以使用新的干净工作区进行检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse 中的错误:“在解决构建路径错误之前无法构建项目” - Error in Eclipse: “The project cannot be built until build path errors are resolved” 在构建路径错误解决eclipse之前,无法构建项目 - Project cannot be built until build path errors are resolved eclipse Spring引导在解决构建路径错误之前,无法构建项目 - Spring boot The project cannot be built until build path errors are resolved “在解决构建路径错误之前,无法构建项目” - “The project cannot be built until build path errors are resolved” 数组无法解析? 这是构建路径问题吗? - Arrays cannot be resolved? Is this a Build path issue? 导入外部 jar 但仍然出现“无法解决”错误 - Imported external jar but still get “Cannot be resolved” errors 打开CoGroo项目时出现许多“无法解析为类型”错误 - Many “cannot be resolved to a type” errors when opening CoGroo project 基本的Android项目:交替无法解决或不是字段/ R无法解决为可变错误 - Basic Android Project: alternating cannot be resolved or is not a field/R cannot be resolved into a variable errors 多个无法解决的错误 - Multiple Cannot Be Resolved Errors 即使添加到构建路径和清理后,也无法解析导入 - Import cannot be resolved even after adding to build path and cleaning
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM