本文共 1080 字,大约阅读时间需要 3 分钟。
题描述:
使用Eclipse开发Android应用程序时,一旦碰到代码补全,Eclipse即进入假死状态,CPU满载(单核100%,双核50%,四核25%)...
一般十几秒,甚至几十秒才能有相应,严重影响开发心情。
Eclipse版本: Helios SR1
ADT插件版本: 10
解决方法:
Android 2.2 Froyo
下载
(base-froyo-a45d693.tar.gz)
解压缩到Android-SDK/platforms/android-8/sources/
重启Eclipse即可实现非常迅速的代码补齐。
Android 2.3 GingerBread
下载(base-gingerbread-4ddd990.tar.gz)
解压缩到Android-SDK/platforms/android-9/sources/
重启Eclipse即可实现非常迅速的代码补齐。
YOURVERSION = froyo , gingerbread .....
参考:
This issue is happen because the ADT classpath container have an invalid source attachment by default. It is fixed in . This change enables changing the ADT clasppath container's source attachment and disables setting invalid source attachment. Hoping it will be available in ADT 8.0.0. Namely, ADT classpath container in 0.9.x has the source attachment set to the/platforms/android- /sources directory. This directory doesn't exist in standard SDK. Eclipse try to cache entries in this directory on every access and it slow up auto completion. Workaround for ADT 0.9.x: attach the valid source attachment as described on
转载地址:http://dogxi.baihongyu.com/