Eclipse相关集锦第二季

Eclipse相关的问题第二季开始了,这些问题都是我平时遇到的,然后记录下来备忘,帮助到别人最好不过了。


1.Unable to execute dex: GC overhead limit exceeded

换机器,新安装Eclipse运行Android程序出现Unable to execute dex: GC overhead limit exceeded,并且较频繁地卡住。实际上是Eclipse设定的内存过小了,大家可以找到eclipse.ini(一般为安装路径下)

我这里的是这样设置的,根据自己机器的配置调高即可。

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.dist
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-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/



好声音继续,好文章不停。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值