Android DDMS device offline

I am using Android 4.3 platform and sdk version 18. When I try to start the helloworld app, the emulator starts up and shuts down immediately. When I debug the DDMS view by killing adb and running adb again and listing adb, it doesn't display any emulator. This throws the following exception:

[2014-08-19 16:08:32 - DeviceMonitor] Adb connection Error:An existing connection was  forcibly closed by the remote host
[2014-08-19 16:08:33 - DeviceMonitor] Connection attempts: 1
[2014-08-19 16:08:59 - DDMS] device offline
com.android.ddmlib.AdbCommandRejectedException: device offline
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:774)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:396)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:347)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:609)
    at com.android.ddmuilib.SysinfoPanel$1.run(SysinfoPanel.java:209)
    at java.lang.Thread.run(Unknown Source)

      

Help me find a solution to this problem on how to link emulator with adb.

Thank.

+3


source to share





All Articles