Eclipse 在 DDMS 创建后初始化中挂起
从最近两天开始,eclipse 开始表现出连线行为。它进入 DDMS post-create init 的无限进程,如果我尝试运行该应用程序,那么 Eclipse 就会挂起。 我尝试使用 eclipse 6.2 和 eclipse 7.0 从头开始安装,但没有成功。 还有其他人遇到这个问题吗,并找到了解决方案,请与我分享。
From last two days, eclipse started showing wired behaviour. Its goes in infinte process of DDMS post-create init, And if i try to run the application then Eclipse got hanged.
I have tried to install from scratch with eclipse 6.2 and eclipse 7.0, but No luck.
Is anybody else facing this problem, and got any solution then please share with me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(16)
我的答案是这样的(如果您使用的是Windows)进入任务管理器并进入进程。您应该在进程(1 个或多个)中看到 adb.exe,如果有超过 1 个,请关闭较小的进程(大小约为 1mb),然后进入 eclipse 文件夹并关闭删除 .lock 文件。 (关闭 Eclipse 后)然后重新打开 Eclipse 即可。我认为发生这种情况是因为 adb 往往会挂起。
My answer is this (if you are using windows) Go into task manager and into processes. you should see adb.exe in processes (1 or more) if there is more than 1 turn off the smaller one (around 1mb in size) then go into eclipse folder and turn off delete the .lock file. (after turning off eclipse) then just turn eclipse back on. I think this happens because the adb tends to hang.
我尝试删除 .lock 文件并启动 eclipse -clean ,启动 Eclipse 并关闭“自动构建”...没有任何帮助。它在启动的各个部分一直锁定。
我的工作区中有大约 100 个不同的项目,结果发现罪魁祸首是我的 Android 项目之一,其中包含损坏的 AndroidManifest.xml 文件。不知何故,整个文件在文件中重复了:
我刚刚删除了重复的行,重新启动了 Eclipse,一切正常。
I tried deleting the
.lock
files and launchingeclipse -clean
, started eclipse with "Build Automatically" turned off...nothing helped. It kept locking up at various parts of the startup.My workspace has about 100 different projects in it, turns out the culprit was one of my Android projects with a corrupt AndroidManifest.xml file. Somehow, the entire thing got duplicated within the file:
I just deleted the duplicate lines, restarted Eclipse, and everything worked OK.
我遇到了同样的问题,但我刚才解决了。
我使用 USB 扩展器将设备连接到 PC。有些设备通过它连接没有问题,但有些则不然。有些USB口甚至直接连接也会出现连接失败的情况!
对我来说的解决方案:
1.使用另一个USB端口,
2. 直接连接到USB端口,
3.重新启动设备和adb。
I got the same problem, but I solved it a moment ago.
I connect my device to PC with a USB extender. Some devices connect through it without problem, but some not. Even connecting to some USB ports directly will let connection fail!
The solutions for me:
1. use another USB ports,
2. connect to the USB ports directly,
3. restart the device and adb.
我有同样的问题。下载了新的eclipse,新的工作区,仍然没有解决。最后,在几次退休后,我发现这是由于外部文件夹中的项目造成的。
例如。我使用 TFS 维护我的项目源代码控制,并说我的项目位于 C:/TFS/Proj1、C/TFS/Folder1/Proj2 等。在 Eclipse 工作区中,我曾经从现有源导入项目。
这是我所做的修复:
eclipse 使用 -clean 我的工作,但我还没有尝试过)
基本思想是,如果您将项目保留在工作区中,则不会出现此问题。
I had the same issue. Downloaded new eclipse, new workspace, still no solution. Finally after several retires I found out it is due to projects in external folders.
Eg. I maintain my project source control using TFS and say my projects are located at C:/TFS/Proj1, C/TFS/Folder1/Proj2 etc. In eclipse workspace I used to import project from existing source.
This is the fix I did:
eclipse using -clean my work, but I haven't tried that)
The basic idea is if you keep your projects in workspace, this problem will not arise.
它(eclipse挂起)也可能是因为adb默认端口(5037根据http:// /developer.android.com/tools/help/adb.html)已被另一台服务器使用。
It (eclipse hangs) can be also because of the adb default port (5037 according to http://developer.android.com/tools/help/adb.html) is already used by another server.
当挂在 DDMS post-create init 中时,
它对我有用。
While hanging in DDMS post-create init,
It works for me.
对我来说,adb.exe 正在尝试监听正在使用的端口 5037
在我删除了正在使用它的程序后,我的生活变得更好了
For me it was the adb.exe is trying to listen to the port 5037 which was in use
after i deleted the program which was using it my life just got better
我正在构建一个由 Unity3D 导出的 GoogleProject。以下对我有用(基于 user2698292 的回答):
平台:MacOS
I am building a GoogleProject exported by Unity3D. Following works for me(based on answer from user2698292):
Platform: MacOS
我遇到了这个问题,这是由于我的工作区的
.metadata
文件夹中存在文件.lock
造成的。我不知道这是否是您的问题,但是关闭 eclipse 并从工作区中删除 .metadata\.lock 文件对我有用。
I had this problem, it was due to the presence of the file
.lock
in the.metadata
folder of my workspace.I don't know if this is your problem, but closing eclipse and deleting the
.metadata\.lock
file from your workspace, worked for me.我遇到了同样的问题,但使用了上述各种方法来解决它。对于我的项目,我将主项目存储在单独的文件夹中,并将测试项目存储在工作区中。 (别问我为什么,事情就是这样)。
我还运行了一个 adb 进程。
我的文件夹结构如下所示:
.
.
解决方案:
kill
rm .lock
I was having the same issue, but used a variety of the methods above to fix it. For my project, I have the main project stored in a separate folder, and my test project in the workspace. (Don't ask me why, that's just how it is).
I also had an adb process running.
My folder structure looks like:
Solution:
kill <adb process #>
rm .lock
我解决了这个问题:
I solved this:
什么对我有同样的麻烦(eclipse 3.7,ubuntu 11.10):
What worked for me with the same trouble (eclipse 3.7, ubuntu 11.10):
对我有用的..
What worked for me..
我尝试了所有这些解决方案,但没有任何效果。
问题出在 Avast 防病毒软件中!我必须禁用它才能让 DDMS 工作(上面有提示)。
另外两天前我无法让 AVD 管理器工作,因为 avast 每次都会将其劫持到沙箱或其他东西中......
希望这会有所帮助
I tried all of these solutions and nothing worked.
The problem was in Avast antivirus! I had to disable it to get DDMS to work(with tips above).
Also two days before i couldnt get AVD manager to work because avast hijacked it everytime into sandbox or something...
Hope this helps
我的只需从 USB 拔出设备即可修复。
Mine was fixed just by unplugging the device from the USB.
我在“欺骗”Eclipse 的 Android SDK 内容加载器后解决了这个问题:
I got around this after "cheating" the Eclipse's Android SDK content loader: