在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了