有时我的adb断开连接。为什么我会这样: -
[2011-09-27 17:39:43 - adb]
[2011-09-27 17:39:43 - adb]This application has requested the Runtime to terminate it in an unusual way.
[2011-09-27 17:39:43 - adb]Please contact the application's support team for more information.
[2011-09-27 17:39:49 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host
[2011-09-27 17:39:51 - DeviceMonitor]Connection attempts: 1
[2011-09-27 17:39:53 - DeviceMonitor]Connection attempts: 2
[2011-09-27 17:39:55 - DeviceMonitor]Connection attempts: 3
[2011-09-27 17:39:57 - DeviceMonitor]Connection attempts: 4
[2011-09-27 17:39:58 - DeviceMonitor]Connection attempts: 5
[2011-09-27 17:40:00 - DeviceMonitor]Connection attempts: 6
[2011-09-27 17:40:02 - DeviceMonitor]Connection attempts: 7
[2011-09-27 17:40:04 - DeviceMonitor]Connection attempts: 8
[2011-09-27 17:40:06 - DeviceMonitor]Connection attempts: 9
[2011-09-27 17:40:08 - DeviceMonitor]Connection attempts: 10
[2011-09-27 17:40:10 - DeviceMonitor]Connection attempts: 11
任何帮助表示赞赏?
答案 0 :(得分:6)
由于某些原因,有时adb会断开连接,因此在这种情况下您必须重置adb。
转到DDMS->Devices
除reset adb
选项外,您会在View Menu
中看到Screen Capture
选项。
答案 1 :(得分:6)
重新启动adb的另一种方法是通过终端或命令行。根据您路径中是否有adb,只需输入:
$ adb kill-server
$ adb start-server
如果adb不在你的路径中,那么:
$ path-to-sdk / platform-tools / adb kill-server
$ path-to-sdk / platform-tools / adb start-server
希望这有帮助!
答案 2 :(得分:2)
我希望连接设备的电缆连接松动。
答案 3 :(得分:2)
转到DDMS->Devices
,您会在“屏幕捕获”选项旁边的“查看菜单”中看到restart adb
选项。
答案 4 :(得分:0)
在首选项中,将android / DDMS日志设置从“错误”更改为“调试”。在此之后,您应该可以使用重置adb选项。