2012-12-28 38 views
0

我試圖運行我的android應用程序使用命令提示符,一旦我在命令提示符中運行adb狀態越來越掛起和消息「等待設備」正在命令提示符顯示。每次我需要關閉模擬器並運行應用程序。這是我的logcat錯誤。請幫助我的朋友。亞行連接錯誤

[2012-12-28 15:48:49 - DeviceMonitor] Adb connection Error:An existing 
connection was forcibly closed by the remote host [2012-12-28 15:48:49 
Unexpected error while launching logcat. Try reselecting the device.] 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:462) at 
com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110) 
    at java.lang.Thread.run(Unknown Source) 

[2012-12-28 15:48:50 - DeviceMonitor] Connection attempts: 1 
+2

嘗試重新啓動蝕。 –

回答

1

你可以做到這一點只需轉到DDMS,並有一個重置ADB選項,如下圖所示。 ADB

可以從命令提示手動重新啓動ADB

RUN => CMD => path_android_sdk =>平臺工具>

然後編寫下面的命令。

adb kill-server - To kill the server forcefully 

adb start-server - To start the server 
c:\android-sdk-windows latest\platform-tools>adb kill-server 

c:\android-sdk-windows latest\platform-tools> 

adb start-server 

守護程序沒有運行。開始它現在在端口5037

守護進程啓動成功

+0

嗨,在我的個人電腦同樣的問題提出,我休閒一步它解決了我的問題,但每次我必須一次又一次地做這個,當我想運行的應用程序。請給我建議任何永久的解決方案.....請...... – SAndroidD