分類
Eclipse error

Eclipse error : Eclipse hangs at the Android SDK Content Loader(0%)

Description : Launch eclipse ide andstucked, “Android SDK Content Loader (0%)” show at of left-bottom dialog
 
Root Cause : Unknow
 
Solution :

cd workspace/.metadata/.plugins/org.eclipse.core.resources/.projects
rm -rf *

ps : Projects won’t be lost but Some projects will confuse need to rebuild
 
Note :
Solution1. Remove ~/.android/cache and ~/.android/ddms.cfg not worked for me !!!
Solution2. Eclipse -> Project -> Build Automatically -> uncheck this option -> restart eclipse fail !!!

分類
Eclipse error

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

Root Caused:
Apk 佔用的記憶體大於 Device(或者模擬器上分配的記憶體)的記憶體
 
Solution:
1. 移除Device上的apk
2. 在Eclipse中將該專案clean, 然後auto build
3. 重新安裝到Device上

分類
Eclipse error

Eclipse Error: Indexer runs out of memory

Cause:
編譯jni會產生大量的檔案,特別是 C/C++ indexer 會建立索引 若eclipse初始記憶體太小會導致
out of memory 的錯誤
Solution:
在 eclipse.ini檔案中可設定記憶體限制,主要調整以下幾個數值
初始設定

--launcher.XXMaxPermSize
256m
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

調整後

--launcher.XXMaxPermSize
512m
-XX:MaxPermSize=512m
-Xms80m
-Xmx1000m

 
細節參考
http://wiki.eclipse.org/Eclipse.ini