本文内容概要: 解决eclipse中出现Resource is out of sync with the file system问题。

eclipse版本:eclipse SDK 3.7.0

在eclipse中搜索时,搜索完之后有时候会弹出错误对话框,错误摘录如下:
Resource is out of sync with the file system……

分析:
有时候因为时间紧迫的原因,所以就没去管它,今天再次遇到它,实在看着不爽,所以想了办法解决此问题!

这个问题是由于eclipse中文件不同步引起的。在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但又关闭了自动刷新功能,则会引起文件不同步,从而搜索时出现Resource is out of sync with the file system问题(其它功能可能也会如此)。此外,在外部没有修改eclipse工程中的文件也有可能引起该问题。

解决方法:
有两种解决方法:
1)手动刷新。即在eclipse的工程目录中,右键refresh(或者按下F5)。
2)配置eclipse的选项:
a)eclipse启动时,刷新workspace,即勾选:window—>preferences—>general—>startup and shutdown—>refresh workspace on startup;
b)window—>preferences—>general—>workspace中:勾选选项:refresh using native hooks or polling和refresh on access;

本人的eclipse版本是:eclipse SDK 3.7.0

本文首发网址:http://blog.csdn.net/reille/,本文网址:http://velep.com/archives/96,转载本博客原创文章请注明出处。

» 文章出处: reille博客—http://velep.com , 如果没有特别声明,文章均为reille博客原创作品
» 郑重声明: 原创作品未经允许不得转载,如需转载请联系reille#qq.com(#换成@)
分享到:

  4 Responses to “解决eclipse中出现Resource is out of sync with the file system问题”

  1. Asking questions are in fact pleasant thing if you are not understanding something totally, however this post gives pleasant
    understanding yet.

  2. wonderful post, very informative. I wonder why the other experts of this sector don’t notice this. You should continue your writing. I am sure, you’ve a huge readers’ base already!

  3. you have a fantastic blog here! would you like to make some invite posts on my weblog?

  4. I just want to say I am just very new to blogging and certainly enjoyed your website. More than likely I’m planning to bookmark your website . You really have impressive stories. With thanks for revealing your web-site.

 Leave a Reply

(必须)

(我会替您保密的)(必须)

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
© 2012 velep.com | reille blog | 管理| 粤ICP备12094833号-2| 谷歌地图| 百度地图| Suffusion theme|Sayontan Sinha

无觅相关文章插件,快速提升流量