为了适应Android5.0的开发,把JDK升级到了1.7,然后在ADT中想调试一下程序(我连接的真机),结果报错如下:
[2015-04-23 15:31:37 - ddms] Can't bind to local 8602 for debugger
[2015-04-23 15:31:37 - ddmlib] 您的主机中的软件中止了一个已建立的连接
。
java.io.IOException: 您的主机中的软件中止了一个已建立的连接。
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:642)
at com.android.ddmlib.HandleHeap.sendREAQ
(HandleHeap.java:348)
at com.android.ddmlib.Client.requestAllocationStatus
(Client.java:488)
at com.android.ddmlib.DeviceMonitor.createClient
(DeviceMonitor.java:835)
at com.android.ddmlib.DeviceMonitor.openClient
(DeviceMonitor.java:803)
at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData
(DeviceMonitor.java:763)
at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop
(DeviceMonitor.java:652)
at com.android.ddmlib.DeviceMonitor.access$100
(DeviceMonitor.java:44)
at com.android.ddmlib.DeviceMonitor$3.run
(DeviceMonitor.java:580)