2013-03-24 104 views
-1

我已經嘗試在Eclipse中創建不同的模擬器,並且每次發生此錯誤時都會嘗試。我沒有Eclipse中運行的兩個實例....無法在Android中啓動AVD模擬器

[2013-03-24 16:02:40 - ddmlib] An established connection was aborted by the software in your host machine 
    java.io.IOException: An established connection was aborted by the software in your host machine 
     at sun.nio.ch.SocketDispatcher.write0(Native Method) 
     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) 
     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) 
     at sun.nio.ch.IOUtil.write(IOUtil.java:60) 
     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) 
     at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) 
     at com.android.ddmlib.Client.sendAndConsume(Client.java:605) 
     at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348) 
     at com.android.ddmlib.Client.requestAllocationStatus(Client.java:451) 
     at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:837) 
     at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:805) 
     at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:765) 
     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) 

事情我已經嘗試:

在我通過Eclipse更新ADT和SDK之前,它曾經工作過。我可以連接到我的設備,然後從那裏運行我的應用程序...

+0

也許有某種權限問題的?你有沒有能夠運行一個模擬器?你有沒有嘗試直接從命令行運行它(沒有Eclipse運行)? – 2013-03-24 16:09:31

回答

0

您需要重新連接ADB。這可以通過'Devices Perspective'菜單完成(右側的最後一個按鈕,上部三角形可以選擇'Reset ADB')。

您也可以從下面的命令在命令行重置ADB:

abd kill-server 

然後

and start-server