Java 在构建其先决条件 PokerGameEngine 之前,无法构建该项目。建议清理和构建所有项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22905622/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 18:50:04  来源:igfitidea点击:

The project cannot be built until its prerequisite PokerGameEngine is built. Cleaning and building all projects is recommended

javaeclipsedebuggingbuild

提问by Sdindiver Kumar

The project cannot be built until its prerequisite PokerGameEngine is built. Cleaning and building all projects is recommended PokerExtension Unknown Java Problem

在构建其先决条件 PokerGameEngine 之前,无法构建该项目。建议清理和构建所有项目 PokerExtension Unknown Java Problem

in eclipse

在日食

it shows red cross mark on project.

它在项目上显示红十字标记。

i have done build automatically and clean all in eclipse for all projects

我已经完成了自动构建并在 Eclipse 中为所有项目清理了所有内容

but it shows red cross

但它显示红十字

回答by sumanr

Try the following points to resolve the error:

尝试以下几点来解决错误:

  • There is an errors tab. It prompts you the problem with the project.

  • Make sure that none of the prerequisit projects has an x mark next to it. In your case PokerGameEngine. If so rebuild it and make sure that all errors are resolved.

  • If you have check style issues, resolve them.

  • Navigate into the project till you reach the file that has the x mark too, and resolve it.

  • 有一个错误选项卡。它会提示您项目的问题。

  • 确保所有先决项目旁边都没有 x 标记。在你的情况下 PokerGameEngine。如果是这样,请重建它并确保解决所有错误。

  • 如果您有检查样式问题,请解决它们。

  • 导航到项目,直到找到也有 x 标记的文件,然后解决它。

X mark mainly means that some prerequisits are missing or some coding error exists.

X 标记主要表示缺少某些先决条件或存在某些编码错误。

回答by mahdihrz

I had that problem with Eclipse when I was developing on projects that depends on each others. I had got two projects A and B. A depends on B and B depends on A. That may cause problems. If it's the case, right click on the project A, then click 'Build Project'. Then, the same thing for project B.

我在开发相互依赖的项目时遇到了 Eclipse 的问题。我有两个项目 A 和 B。A 依赖于 B,B 依赖于 A。这可能会导致问题。如果是这种情况,请右键单击项目 A,然后单击“构建项目”。然后,项目 B 也是如此。

I solved my problem doing theses steps.

我通过这些步骤解决了我的问题。

回答by Jonas_Hess

For Eclipse you can find the rebuild option in the top menu under Project > Clean and then select the project you want to clean up... that's all.

对于 Eclipse,您可以在顶部菜单中的 Project > Clean 下找到重建选项,然后选择您要清理的项目......就是这样。

Eclipse Clean projects selected below enter image description here

下面选择的 Eclipse Clean 项目 在此处输入图片说明

This will build your project and create a new bin folder.

这将构建您的项目并创建一个新的 bin 文件夹。

回答by Sachin Hatpaki

If both projects are mavenised then update PokerGameEngine project. Right click on it -> Maven -> Update Project. or (Alt+F5)

如果这两个项目都经过优化,则更新 PokerGameEngine 项目。右键单击它 -> Maven -> 更新项目。或 (Alt+F5)