使用 Eclipse (Android) 导出存档文件或文件系统时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14408119/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error when exporting archive file or file system with Eclipse (Android)
提问by MDP
I want to export my project in order to reuse the code into a new project. Every time I try to export it, both "file system" and "archive file" I get error
我想导出我的项目以便将代码重用于新项目。每次我尝试导出它时,“文件系统”和“存档文件”都会出错
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'.
Maybe it depends on the fact that I copied file into my project folder without using Eclipse. Is there a way to solve the problem?
也许这取决于我在不使用 Eclipse 的情况下将文件复制到我的项目文件夹中的事实。有没有办法解决这个问题?
回答by Raghav Sood
In Eclipse, right click on the project and click Refresh
. This will have Eclipse resync the project with the filesystem.
在 Eclipse 中,右键单击该项目并单击Refresh
。这将使 Eclipse 重新同步项目与文件系统。
回答by Umair
- Right click on that particular project
- Click Refresh
- That's it
- 右键单击该特定项目
- 点击刷新
- 就是这样
Now: Do the export and it will work like a charm. Sometimes when you manually copy projects into the workspace, like I did, you encounter syncing problem. Refreshing the project re-sync it with the file system.
现在:进行导出,它会像魅力一样工作。有时,当您像我一样手动将项目复制到工作区时,会遇到同步问题。刷新项目使其与文件系统重新同步。