需要一种从 PC 上拔下设备插头的方法吗?

发布于 2024-12-04 18:23:01 字数 1568 浏览 3 评论 0原文

如何从电脑上拔下设备?只有在我可以从电脑上拔下设备后,我总是从任务管理器中停止 adb。当时我的 Eclipse 中出现了一些错误:

[2011-09-16 12:05:14 - Logcat]An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395)
at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)

[2011-09-16 12:05:14 - DeviceMonitor]Adb connection Error:An existing connection was forcibly     closed by the remote host
[2011-09-16 12:05:16 - DeviceMonitor]Connection attempts: 1
[2011-09-16 12:05:18 - DeviceMonitor]Connection attempts: 2
[2011-09-16 12:05:20 - DeviceMonitor]Connection attempts: 3
[2011-09-16 12:05:22 - DeviceMonitor]Connection attempts: 4
[2011-09-16 12:05:24 - DeviceMonitor]Connection attempts: 5
[2011-09-16 12:05:26 - DeviceMonitor]Connection attempts: 6
[2011-09-16 12:05:28 - DeviceMonitor]Connection attempts: 7
[2011-09-16 12:05:30 - DeviceMonitor]Connection attempts: 8
[2011-09-16 12:05:32 - DeviceMonitor]Connection attempts: 9
[2011-09-16 12:05:34 - DeviceMonitor]Connection attempts: 10
[2011-09-16 12:05:36 - DeviceMonitor]Connection attempts: 11

避免这种尝试的方法是什么以及如何在不停止 adb 的情况下安全地拔出插头?

How to unplug the device from pc? I'm always stop the adb from my TaskManager after only i can unplug my device from PC. In that time i'm having some errors in my Eclipse :

[2011-09-16 12:05:14 - Logcat]An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395)
at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)

[2011-09-16 12:05:14 - DeviceMonitor]Adb connection Error:An existing connection was forcibly     closed by the remote host
[2011-09-16 12:05:16 - DeviceMonitor]Connection attempts: 1
[2011-09-16 12:05:18 - DeviceMonitor]Connection attempts: 2
[2011-09-16 12:05:20 - DeviceMonitor]Connection attempts: 3
[2011-09-16 12:05:22 - DeviceMonitor]Connection attempts: 4
[2011-09-16 12:05:24 - DeviceMonitor]Connection attempts: 5
[2011-09-16 12:05:26 - DeviceMonitor]Connection attempts: 6
[2011-09-16 12:05:28 - DeviceMonitor]Connection attempts: 7
[2011-09-16 12:05:30 - DeviceMonitor]Connection attempts: 8
[2011-09-16 12:05:32 - DeviceMonitor]Connection attempts: 9
[2011-09-16 12:05:34 - DeviceMonitor]Connection attempts: 10
[2011-09-16 12:05:36 - DeviceMonitor]Connection attempts: 11

What's the way to avoid this attempts and how to unplug safely without stop adb?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文