項目出現紅色嘆號 可能幾種原因:
首先可以先切換一下,轉換到Markers視圖,windows---->show view ---->markers ,查看具體錯誤信息。
1、jar問題,解決方法:項目右鍵 屬性 java build path 點選library選項卡 更改jre system library為你本地的jre 或者jdk
2、多個項目循環引用,導致的,“A cycle was detected in the build path of project: XXX”
解決方法非常簡單:
Eclipse Menu -> Window -> Preferences... -> Java ->Compiler -> Building -> Building path problems -> Circular dependencies -> 將Error改成Warning
3、the project cannot be built until its prerequisite問題.解決方法.
把項目 close一下.再open, project->clean就可以了