Eclipse 項目紅色嘆號:Build Path Problem


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM