Android import和export使用说明 及 export报错:jarlist.cache: Resource is out of sync with the file syst解决

来源:互联网 发布:淘宝客服上下班时间 编辑:程序博客网 时间:2024/05/13 10:54

    在Android开发export项目时发现有时会报错,内容如下:

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

    原因有的人说是文件不同步的问题,也即在eclipse之外对文件进行了修改。但我的工程并没有在eclipse之外改动。

解决方法:点击eclipse上面的project--clean一下就OK了!  或者刷新一下项目!

也有人导出项目再导入时报错一大堆,这里记录下流程。

export流程:

右键项目--export---general--archive file----点击next,然后点browse选择路径,有两种压缩方式。如下图:

import流程:

事先将上面的压缩文件放在/home/yan/download路径下,然后解压。(记住一定要先解压,且这个目录是除android工作空间外的目录

然后在左边栏里点import---General---Existing projects into Workspace---next,选择上面压缩文件解压缩后的目录,勾选 Copy projects into workspace。就ok了。