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
4

1 に答える 1

1

以下の画像のように、DDMSに移動するだけでadbのリセットオプションがあります。ADB

コマンドプロンプトから手動でadbを再起動できます

run=>cmd=>path_android_sdk=>platform-tools>

次に、以下のコマンドを記述します。

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 で今すぐ開始する

デーモンが正常に起動しました

于 2012-12-28T10:47:36.303 に答える