开发者

Android development on Eclipse + Win XP - Autocomplete syntax hangs

I switched from a Mac to my PC because Eclipse on a Mac was killing me. Windows definitely is much better, but eclipse hangs for 5-6 seconds everytime I try to make it autocomplete my syntax. Say when I hit imgView. and wait for it to pull up an image view properties, it开发者_如何学编程 just hangs for 5 seconds and then pulls them up.

Is there any way I can fix this?


Its a known Eclipse and JDK bug. Please see http://www.eclipse.org/forums/index.php?t=msg&goto=548912& http://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&


Easy solution is:

  1. Download https://android.googlesource.com/platform/frameworks/base/+archive/<branch>.tar.gz where <branch> is one of those listed here (froyo-release for 2.2, the file is about 113MB):
    https://android.googlesource.com/platform/frameworks/base/+refs
  2. Extract the contents of base/ in the tar into "/platforms/android-/sources" where is 8 for froyo, 7 for eclair, etc.
  3. Enjoy fast content assist in 3.6!
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜