Eclipse 在 Android 相关自动完成上冻结
我有一个普通的 Eclipse,安装了 ADT 并开始学习一些教程。大多数情况下它工作得很好。它将很好地构建项目,启动模拟器并运行编译后的 android 应用程序,我可以编辑 XML 和 java 文件的某些部分,但一旦弹出自动完成框,就这样了。 Eclipse 完全冻结了。 eclipse的CPU使用率下降到0%,什么也没有发生。我已经等了几分钟,但 CPU 为 0%,我看不出有什么意义。而且打字时频繁等待 10 秒也会导致无法使用。
我找到了下载源代码的参考并将其放入进入 platforms/android-X/sources
我已经做到了,但问题并没有消失。 (诚然,我刚刚下载了 froyo 源代码并将其放入 android-8
中 - 我希望不必为每个版本的 android 执行此操作 - 我也有 7、9 的目录和 10 在 /platforms/
中)。
我正在使用 Ubuntu Natty (11.04),所以我想新的窗口管理器 (Unity) 可能有问题,但我搜索了 http://launchpad.net 并没有在那里找到任何东西。
除了 ADT(及其依赖项)之外,我没有安装其他插件。 Eclipse 的版本是 Ubuntu Natty 存储库中的 Galileo (3.5.2)。 ADT 版本为 12.0.0.v201106281929-128431。
I've got a vanilla Eclipse, installed the ADT and started following some tutorials. Mostly it works fine. It will build the project fine, launch the emulator and run the compiled android app, I can edit the XML, and some portions of the java files, but once the autocomplete box pops up, that's it. Eclipse freezes totally. The CPU usage of eclipse drops to 0% and nothing happens. I've waited a couple of minutes, but with 0% CPU I don't see the point. And even 10 seconds wait that frequently when typing makes it unusable.
I have found references to downloading the source and putting it into platforms/android-X/sources
and I've done that, but the problem has not gone away. (Admittedly I've just downloaded the froyo sources and put it in android-8
- I was hoping I wouldn't have to do it for every version of android - I also have directories for 7, 9 and 10 in /platforms/
).
I am using Ubuntu Natty (11.04) so I guess it is possible the new window manager (Unity) might be having a problem, but I've searched http://launchpad.net and not found anything there.
I have no other plugins installed apart from ADT (and it's dependencies). The version of Eclipse is Galileo (3.5.2) from the Ubuntu Natty repositories. ADT is version 12.0.0.v201106281929-128431.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当执行自动完成时 Eclipse 冻结确实是一个错误,并且在 Eclipse 3.6.2 中已修复。您应该将 Eclipse 升级到最新版本。
干杯。
Eclipse freezes when perform auto-complete is really a bug, and it's fixed in Eclipse 3.6.2. You should upgrade to your Eclipse to latest version.
Cheers.
eclipse中有很多bug,比如这样。除了升级到更高版本之外,你无能为力,这会产生其他错误,但稍后会修复:)
There are a lot of bugs in eclipse, like this. You can't do anything, except upgrade to higher versions, what make other bugs, but they will be fixed later :)