Eclipse相關的問題第二季開始了,這些問題都是我平時遇到的,然後記錄下來備忘,協助到別人最好不過了。
1.Unable to execute dex: GC overhead limit exceeded
換機器,新安裝Eclipse運行Android程式出現Unable to execute dex: GC overhead limit exceeded,並且較頻繁地卡住。實際上是Eclipse設定的記憶體過小了,大家可以找到eclipse.ini(一般為安裝路徑下)
我這裡的是這樣設定的,根據自己機器的配置調高即可。
-startupplugins/org.eclipse.equinox.launcher_1.2.0.dist.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.dist-showsplashorg.eclipse.platform--launcher.XXMaxPermSize512m--launcher.defaultActionopenFile-vmargs-Xms512m-Xmx1024m-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
設定後Eclipse沒有出現過卡住的情況。
2.Terminal in Eclipse
Linux Eclipse開發利器,在Eclipse使用命令列,這個比Eclipse內建的那個run要好。外掛程式是由Googler 開發。
地址:https://code.google.com/p/elt/
3.Eclipse cannot load SWT libraries
32bit System plz try this
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
64bit System plz try this
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
好聲音繼續,好文章不停。