在使用Eclipse进行软件开发时候遇到这样的问题,包中一个类打不开,提示“resource is out of sync with the file system”的错误。但是,其它的文件正常,非常郁闷……
经过分析发现原因出在我在Eclipse之外,用其它工具对其进行了修改。解决办法也就找到:
1. 要么,选中项目->右键->刷新;
2. 要么,window->performance->general->workspace->其中的Refresh automaically选中保存就可以了。