現(xiàn)象: 在eclipse做編譯時(shí),提示錯(cuò)誤"The project cannot be built until its prerequisite XXX is built. Cleaning and building all projects is recommended" .
解決方法: 最初無(wú)論怎樣Clean都不能去掉編譯紅叉,后來(lái)在網(wǎng)上搜索到一個(gè)解決方法,原文是這樣的:
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 ;-)本人比較懶,覺(jué)得remove 后再re-add太麻煩 , 我的做法是直接將出錯(cuò)的project, close掉,然后再open. 發(fā)現(xiàn)編譯竟然也好了.