首页 > 学院 > 开发设计 > 正文

Resource is out of sync with the file system 解决办法

2019-11-14 22:58:38
字体:
来源:转载
供稿:网友
Resource is out of sync with the file system 解决办法

出现提示:

在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

个人推荐第一种解决方法,在你的项目比较大的时候,采用第二种方法加载速度会很慢,修改文件之后自动刷新会产生意想不到的问题。


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表