Eclipse相關集錦第二季

來源:互聯網
上載者:User

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/

好聲音繼續,好文章不停。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.