11

我想导出我的项目,以便将代码重用到新项目中。每次我尝试导出它时,“文件系统”和“存档文件”都会出错

Problems were encountered during export:
  Error exporting name_of_my_project/bin/jarlist.cache: Resource is out of sync with the file system: '/name_of_my_project/bin/jarlist.cache'.
    Resource is out of sync with the file system: '/name_of_my_project/bin/jarlist.cache'.

也许这取决于我在不使用 Eclipse 的情况下将文件复制到我的项目文件夹中的事实。有没有办法解决这个问题?

4

2 回答 2

40

在 Eclipse 中,右键单击项目并单击Refresh. 这将使 Eclipse 将项目与文件系统重新同步。

于 2013-01-18T21:51:19.303 回答
2
  1. 右键单击该特定项目
  2. 单击刷新
  3. 就是这样

现在:进行导出,它会像魅力一样工作。有时当您像我一样手动将项目复制到工作区时,您会遇到同步问题。刷新项目将其与文件系统重新同步。

于 2014-03-20T13:27:25.933 回答