4

通过 elumator 测试我的代码时,Eclipse 控制台显示此错误(但应用程序调试正常):

[2011-12-28 13:30:26 - ddmlib]Your host of software to suspend a already established connection。
java.io.IOException: Your host of software to suspend a already established connection
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(Unknown Source)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.write(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
    at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
    at com.android.ddmlib.Client.sendAndConsume(Client.java:575)
    at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
    at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421)
    at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:854)
    at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:822)
    at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:781)
    at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:649)
    at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)
    at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:577)

给我一些提示。

4

1 回答 1

0

使用 Force new Bridge = false 创建桥

我猜这不会创建新的桥并使用现有的桥!

AndroidDebugBridge.createBridge("PATH/TO/ADB/adb",false);

让我们知道这是否有效!

于 2016-08-22T10:13:02.313 回答