Description Resource Path Location Type
A cycle was detected in the build path of project 'shgl-category-api'. The cycle consists of projects {shgl-category-api, shgl-category-provider} shgl-category-api Build path Build Path Problem
項目出現紅色嘆號 有可能好幾種原因:
先把eclipse轉換到Markers視圖,windows---->show view ---->markers ,查看具體錯誤信息。
1、項目右鍵 屬性 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就可以了
轉自:http://blog.csdn.net/chenyulancn/article/details/44237641