博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
彻底解决 Eclipse + Android 自动补全卡死的问题
阅读量:4167 次
发布时间:2019-05-26

本文共 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/

你可能感兴趣的文章
嵌入式100题(043):什么是四次挥手
查看>>
嵌入式100题(044):为什么客户端最后还要等待2MSL?
查看>>
嵌入式100题(045):为什么建立连接是三次握手,关闭连接确是四次挥手呢?...
查看>>
嵌入式100题(028):static的用法(定义和用途)
查看>>
嵌入式100题(027):char和int之间的转换
查看>>
嵌入式100题(029):const常量和#define的区别(编译阶段、安全性、内存占用等)...
查看>>
嵌入式100题(030):volatile作用和用法
查看>>
嵌入式100题(033):TCP、UDP的优缺点
查看>>
嵌入式100题(035):TCP为什么是可靠连接
查看>>
嵌入式100题(034):TCP UDP适用场景
查看>>
嵌入式100题(70):一个程序从开始运行到结束的完整过程(四个过程)
查看>>
嵌入式100题(71):什么是堆,栈,内存泄漏和内存溢出?
查看>>
嵌入式100题(73):死锁的原因、条件 创建一个死锁,以及如何预防
查看>>
嵌入式100题(60):系统调用的作用
查看>>
C语言基本概念归纳
查看>>
初识单片机
查看>>
在单片机上点亮LED
查看>>
初学定时器
查看>>
数码管
查看>>
单片机数码管消隐及中断
查看>>