現(xiàn)象: 在eclipse做編譯時,提示錯誤"The project cannot be built until its prerequisite XXX is built. Cleaning and building all projects is recommended" .
解決方法: 最初無論怎樣Clean都不能去掉編譯紅叉,后來在網(wǎng)上搜索到一個解決方法,原文是這樣的:
I found that if I remove the project and re-add it again it works (clean all and build all did not work). Strange but at least it works now ;-)本人比較懶,覺得remove 后再re-add太麻煩 , 我的做法是直接將出錯的project, close掉,然后再open. 發(fā)現(xiàn)編譯竟然也好了.