用eclipse开发android app,自动补齐时很慢很卡的解决办法(转帖)
2011-03-18 10:34
507 查看
After creating a new Android development setup on my computer I noticed a huge delay in the autocomplete in Eclipse, when working with my apps. When trying to access certain objects functions with a dot, Eclipse freezes for a couple of seconds, before giving me the autocomplete options. This delay is very annoying, I found the solution, and I would now like to share it! You need to download some source files spesific to which Android API version you are working with. The URL is http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=<API version>;sf=tgz And you have to replace <API version> with one of these: * gingerbread for API 9 – Android 2.3 * froyo for API 8 – Android 2.2 * eclair for API 7 – Android 2.1 * donut for API 6 – Android 1.6 so the URL becomes for example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=froyo;sf=tgz for froyo, or: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=gingerbread;sf=tgz for Gingerbread. (Thanks Gyuri). Also, as Al Sutton mentioned in the comments, you can use SDK tags like android-sdk-2.2_r2, which would look like this: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=android-sdk-2.2_r2;sf=tgz Thank you Al. The download is about 100 MB. After you have downloaded the file, (which comes as .tar.gz by the way), you have to open the archive, and copy the contents of the base directory, into your <android-SDK>/platforms/android-<API version>/sources directory. (Create the sources directory if it does not exist) When you now start Eclipse, you should have autocompletion working fine again! Please share this article! |
相关文章推荐
- 拿什么拯救:Android Studio 时代 继续使用Eclipse开发Android app时遇到的几个问题以及解决办法
- eclipse android 开发 自动代码补全卡死解决办法
- eclipse 错误提示API level 11 (current min is 8)android.app.Activity#getActionBar解决办法
- Eclipse下Android开发的问题:Failed to install AndroidPhone.apk on device 'emulator-5554': timeout 解决办法
- Eclipse Android开发遇到:"The type org.apache.http.HttpResponse cannot be resolved."问题的解决办法
- Android开发:EditText和ListView或GridView同时使用,输入法自动跳出来的 解决办法
- Android AppWidget 开发中PendingIntent传送数据丢失解决办法
- Eclipse下Android工程开发问题解决办法合集
- eclipse、android开发 logcat出现 Unable to open log device ‘/dev/log/main’: No such file or directory 解决办法
- eclipse android 开发加载图片资源提示找不到对应名称解决办法
- 【吐血写此博】Fedora14下eclipse进行android开发,ibus提示没有输入窗口的 解决办法
- win7下eclipse Classic版本搭建Android开发环境ADT插件出错的解决办法
- 解决android开发中eclipse不能自动提示
- eclipse、android开发 logcat出现 Unable to open log device ‘/dev/log/main’: No such file or directory 解决办法
- debian7.4安装ia32-libs-i386失败,debian eclipse android开发环境 adb Canot run program的解决办法
- Eclipse Android 代码自动提示消失解决办法Java xml
- Android Eclipse工程开发中的常见调试问题(二)android.os.NetworkOnMainThreadException 异常的解决办法
- Eclipse集成开发环境如何与android手机连接的一个解决办法
- 基于eclipse的android开发真机无法识别的解决办法
- android开发 eclipse alt+”/”自动提示失效的解决方法