Eclipse在Android开发的adt-bundle中自动完成冻结 [英] Eclipse in adt-bundle for android development freezes by auto complete

查看:102
本文介绍了Eclipse在Android开发的adt-bundle中自动完成冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要开发Android应用程序,我从以下位置下载了adt-bundle:dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip
我已经下载了该捆绑包,因为我有一直在使用ubuntu 12.04.3lts(32位)。



我一直在享受eclipse IDE提供的捆绑(几乎2个月),但突然我面临严重的错误这字面上阻止了我的发展。问题是eclipse自动完成(或代码建议)只是冻结窗口。但是鼠标是可以的,它允许像往常一样移动鼠标,但键盘和其他应用程序/进程只是冻结。



虽然键盘冻结,但如果我按Ctrl + Alt + Fx键,则打开命令窗口模式。从这个命令窗口我可以杀死eclipse和其他进程,并可以按Ctrl + Alt + F7返回到上一个窗口。但是我不能选择其他进程。唯一的解决方案是通过按电源键或从该命令窗口重新启动来关闭。



我已经搜索了近三天的这个问题的解决方案,但没有解决我的问题。我在stackoverflow中发现了类似的问题,但给定的解决方案对我来说没有效果。



这里我给出了我遵循的给定解决方案的一些链接。 >

Eclipse ADT捆绑包突然在Mint 16 Petra上崩溃



Eclipse继续崩溃



自动完成弹出窗口中的Eclipse ADT崩溃



另一个神秘的是这个问题有时候会消失。有时我可以工作2或3个小时,没有任何问题,即使汽车建议工作正常。但是当问题出现时,它只会阻止我的那一天的发展。在第二天,eclipse可能会在2/3的时间内工作,没有任何麻烦。



这里我应该提到,我已经尝试过OpenJdk6,OpenJDK7和Oracle-java- 7。我也尝试通过将ubuntu内核从12.04l更新到12.04.3lts。并且还尝试通过更改eclipse.ini文件中的内存限制。我也尝试从最新的下载替换来自adt-bundle的eclipse。一个新的下载。



唉!没有任何工作!



这里我提到我目前的java版本,ubuntu版本和eclipse.ini文件配置:



$ f $ @
Java版本1.7.0_51
Java(TM)SE运行时环境(build 1.7.0_51-b13)
Java HotSpot(TM)服务器VM(build 24.51-b03,混合模式)



mushfique @ mushfique:〜$ javac -version
javac 1.7.0_51



mushfique @ mushfique:〜$ lsb_release -a
没有LSB模块可用。
分销商ID:Ubuntu
说明:Ubuntu 12.04.3 LTS
发布:12.04
代号:精确



我的硬件配置是:
处理器:英特尔®酷睿™i3 CPU M 330 @ 2.13GHz×4
内存:2.8GB(实际3GB)
Os:32位



我也在这里提供我的eclipse.ini文件的完整内容:

  -startup 
plugins / org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins / org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200。 v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion = 1.6
-XX: MaxPermSize = 512m
-Xms256m
-Xmx1024m
-Declipse.buildId = v22.3.0-887826
-XX:MaxPermSize = 512M
-Dorg.eclipse.swt。 browser.DefaultType = mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath = / usr / lib / xulrunner /

对不起,我的大问题。



我会感谢任何建议。



谢谢

解决方案

我有同样的问题,我通过添加这行来解决

  -Dorg.eclipse.swt.browser.DefaultType = mozilla 

结束eclipse.ini文件。
我在这里找到解决方案:
自动完成弹出窗口时,Eclipse ADT崩溃


To develop android app I downloaded the adt-bundle from the following location: dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip I downloaded that bundle since I have been using ubuntu 12.04.3lts(32 bit).

I have been enjoying the eclipse IDE given with the bundle(for almost 2months) but suddenly I am facing a serious error which literally stopped my development. The problem is eclipse auto complete(or code suggestion) is just freezing the window. But the mouse is ok, it allows to move the mouse as usual but keyboard and other application/process just freezes.

Though the keyboard freezes but if I press Ctrl + Alt + Fx keys then it opens command window mode. From this command window I can kill eclipse and other processes and can back to the previous window by pressing Ctrl + Alt + F7. But I can not choose other processes though. The only solution is shutdown by pressing the power key or reboot from that command window.

I've searched for almost three days of solution of this problem but nothing solved my problems. I've found similar problem in stackoverflow but the given solution didn't worked for me.

Here I am giving some links of given solution which I followed.

Eclipse ADT Bundle crashes suddenly on Mint 16 Petra

Eclipse continue crashing

Eclipse ADT crash when autocomplete popup

Another mysterious thing is this problem sometimes gone. Sometimes I can work for 2 or 3 hours without any problem even the auto suggestion works well. But when the problem arise it just stops my that day development. On the next day eclipse may work well for 2/3 hours without any trouble.

Here I should mention that I've tried with OpenJdk6, OpenJDK7 and Oracle-java-7. I have also tried by updating my ubuntu kernel from 12.04lts to 12.04.3lts. And also tried by changing memory limit in eclipse.ini file. I've also tried by replacing the eclipse from adt-bundle with a new one from latest download.

Alas! Nothing works!

Here I am mentioning my current java version, ubuntu version and eclipse.ini files configuration:

mushfique@mushfique:~$ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode)

mushfique@mushfique:~$ javac -version javac 1.7.0_51

mushfique@mushfique:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise

My hardware configuration is: Processor: Intel® Core™ i3 CPU M 330 @ 2.13GHz × 4 Memory: 2.8GB(Actually 3GB) Os: 32 bit

I am also giving the complete content of my eclipse.ini file here:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=512m
-Xms256m
-Xmx1024m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/

Sorry for my large question.

I would be grateful for any suggestion.

Thanks

解决方案

I had the same problem, and I solved by adding this line

-Dorg.eclipse.swt.browser.DefaultType=mozilla

to the end of the eclipse.ini file. I found the solution here: Eclipse ADT crash when autocomplete popup

这篇关于Eclipse在Android开发的adt-bundle中自动完成冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆