Android Eclipse 插件“重置 adb”给出“Adb 连接错误:EOF”错误,不是阻塞,但它是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1997474/
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
Android Eclipse Plugin "reset adb" gives "Adb connection Error:EOF" error, not blocking, but what is it?
提问by Bialecki
I'm trying to work through their notepad tutorial and it describes how the Eclipse project should automagically build and re-generate the auto-generated code when a file is saved. That wasn't happening, and looking at their debugging, they suggest the "reset adb" link in the DDMS perspective in the Devices panel. When I try to do that, I get the following output which I assume is bad:
我正在尝试完成他们的记事本教程,它描述了 Eclipse 项目应该如何在保存文件时自动构建和重新生成自动生成的代码。这并没有发生,在查看他们的调试时,他们建议在设备面板的 DDMS 透视图中使用“重置 adb”链接。当我尝试这样做时,我得到以下我认为不好的输出:
[2010-01-03 23:09:51 - DeviceMonitor]Adb connection Error:EOF
[2010-01-03 23:09:51 - DeviceMonitor]Connection attempts: 1
a quick Google didn't reveal anything particular useful. What are the next debugging steps and/or what might be the issue?
一个快速的谷歌没有透露任何特别有用的东西。接下来的调试步骤是什么和/或可能是什么问题?
UPDATE: So this actually isn't a problem like I thought it was, but I'd still be curious what this message means if anyone knows.
更新:所以这实际上不像我想象的那样是一个问题,但如果有人知道,我仍然很好奇这条消息意味着什么。
回答by Christopher Orr
DDMS uses a long-lived connection to the adb
server running locally to get info about connected devices/emulators etc. The error message you posted generally just means that the connection to adb
has been lost.
DDMS 使用与adb
本地运行的服务器的长期连接来获取有关已连接设备/模拟器等的信息。您发布的错误消息通常仅表示连接adb
已丢失。
Because you ran the reset command, you essentially just killed and restarted an adb
process, so Eclipse showed that harmless warning for a moment.
因为您运行了 reset 命令,您实际上只是杀死并重新启动了一个adb
进程,所以 Eclipse 会暂时显示该无害警告。
You can see this yourself by killing the adb
process manually. Eclipse will show Connection attempts: n
for about 10 attempts before giving up.
您可以通过adb
手动终止进程来自己查看。Eclipse 将显示Connection attempts: n
大约 10 次尝试后放弃。