控制檯(Console)輸出:java
java.io.IOException: Broken pipeandroid at sun.nio.ch.FileDispatcherImpl.write0(Native Method)oop at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)spa at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)blog at sun.nio.ch.IOUtil.write(IOUtil.java:65)ip at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)get at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)it at com.android.ddmlib.Client.sendAndConsume(Client.java:675)pip at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:342)io at com.android.ddmlib.Client.requestAllocationStatus(Client.java:521) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:831) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:799) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:759) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:648) at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44) at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:576) |
真機運行報錯:java.io.IOException: Broken pipe ,logcat斷開鏈接。
網上找的緣由:http://stackoverflow.com/questions/16700292/java-io-exception-broken-pipe