Eclipse 中的亚行崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5455553/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:03:12  来源:igfitidea点击:

ADB Crashing in Eclipse

androideclipseadb

提问by Ozzah

This question relates to this thread, however that thread has no answers so this it not technically a duplicate.

这个问题与此线程有关,但是该线程没有答案,因此从技术上讲这不是重复的。

I've got ADB 1.0.26 running on my Windows 7 x64 and Eclipse SDK 3.6.2 with ADT 10.0.1 SDK tools r10, and I've got all the Android SDK versions installed.

我已经在我的 Windows 7 x64 和 Eclipse SDK 3.6.2 上运行了 ADB 1.0.26,使用 ADT 10.0.1 SDK 工具 r10,并且我已经安装了所有的 Android SDK 版本。

When I connect my phone to the computer in debug mode, and type adb devicesinto the command prompt, my phone shows up. It's an Inspire 4G. I can adb shellinto the device and ls, so I'm assuming that the adb/driver/phone part of the chain is working properly.

当我在调试模式下将手机连接到计算机并adb devices在命令提示符中键入时,我的手机就会出现。这是一个 Inspire 4G。我可以adb shell进入设备和ls,所以我假设链的 adb/driver/phone 部分工作正常。

Now, if I connect my phone and go into Eclipse, I get:

现在,如果我连接手机并进入 Eclipse,我会得到:

[2011-03-28 17:46:33 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host

[2011-03-28 17:46:34 - DeviceMonitor]Connection attempts: 1

[2011-03-28 17:46:36 - DeviceMonitor]Connection attempts: 2

[2011-03-28 17:46:33 - DeviceMonitor]Adb 连接错误:现有连接被远程主机强行关闭

[2011-03-28 17:46:34 - DeviceMonitor]连接尝试:1

[2011-03-28 17:46:36 - DeviceMonitor]连接尝试:2

[...]

[...]

[2011-03-28 17:47:53 - DeviceMonitor]Connection attempts: 10

[2011-03-28 17:46:54 - DeviceMonitor]Connection attempts: 11

[2011-03-28 17:47:00 - adb]

[2011-03-28 17:47:00 - adb]This application has requested the Runtime to terminate it in an unusual way.

[2011-03-28 17:47:00 - adb]Please contact the application's support team for more information.

[2011-03-28 17:47:04 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host

[2011-03-28 17:47:05 - DeviceMonitor]Connection attempts: 1

[2011-03-28 17:47:07 - DeviceMonitor]Connection attempts: 2

[2011-03-28 17:47:53 - DeviceMonitor]连接尝试:10

[2011-03-28 17:46:54 - DeviceMonitor]连接尝试:11

[2011-03-28 17:47:00 - 亚行]

[2011-03-28 17:47:00 - adb]此应用程序已请求运行时以一种不寻常的方式终止它。

[2011-03-28 17:47:00 - adb]请联系应用支持团队了解更多信息。

[2011-03-28 17:47:04 - DeviceMonitor]Adb 连接错误:现有连接被远程主机强行关闭

[2011-03-28 17:47:05 - DeviceMonitor]连接尝试:1

[2011-03-28 17:47:07 - DeviceMonitor]连接尝试:2

etc, etc... This loops forever. It doesn't matter if I start Eclipse and then connect the phone, or if I connect the phone and then start Eclipse.

等等,等等......这永远循环。是先启动Eclipse再连接手机,还是先连接手机再启动Eclipse都没有关系。

I don't think it should matter, but my phone is an Inspire 4G which is rooted and running Revolution 4G 3.2

我认为这无关紧要,但我的手机是 Inspire 4G,它已扎根并运行 Revolution 4G 3.2

采纳答案by Frank

this patched adb version worked fine for me (HTC Desire HD): http://code.google.com/p/android/issues/detail?id=12141

这个打过补丁的 adb 版本对我来说很好用(HTC Desire HD):http: //code.google.com/p/android/issues/detail?id=12141

回答by Vicky Kapadia

For this go to DDMS, Look for Devices-->View Menu-->Reset adb.

为此,请转到 DDMS,查找设备--> 查看菜单--> 重置 adb。

回答by kurtzmarc

Do you have the Revolution 4G ROMs installed? If so, then I had to install the no-sense patch to remove all the HTC stuff. Once I did that, ADB stopped crashing in Eclipse.

你安装了Revolution 4G ROM吗?如果是这样,那么我必须安装无意义的补丁来删除所有 HTC 的东西。一旦我这样做了,ADB 就停止在 Eclipse 中崩溃。

Edit - Actually it seems like it still crashes sometimes, but not as often? Still not a solution.

编辑 - 实际上它似乎有时仍然会崩溃,但不那么频繁?仍然不是解决方案。