Eclipse/adb frequently disconnects from my device

后端 未结 11 988
栀梦
栀梦 2020-12-10 00:37

While debugging, my device frequently disconnects from my PC, usually after every debug session. The device still appears in the DDMS list but the status is \"offline\". The

相关标签:
11条回答
  • 2020-12-10 01:20

    Please check this answer https://stackoverflow.com/a/26425489/1200583 that is for mac but maybe is the same for other OSs

    enter image description here

    0 讨论(0)
  • 2020-12-10 01:22

    I also faced this issue. Adb disconnect my Android device each time just after installing the app in android device from eclipse. The issue was with my USB Cable. I was using the USB cable of Blackberry Phone. To resolve this issue i just changed the USB Cable with Android's USB cable(The cable that comes with new Android Phone) and every thing started working fine.

    0 讨论(0)
  • 2020-12-10 01:25

    We feel your pain. In case you're using the command-line, you can do the same thing by typing "adb kill-server".

    0 讨论(0)
  • 2020-12-10 01:30

    Yup, you are right. It seems to be a software issue.I have faced this annoying thing many times, it happens now and then. I think what happens is that the adb's connection with the device/emulator breaks or becomes faulty, so android starts showing the device as offline.

    To correct this problem. Go to DDMS-->Devices Tab-->Click the option "Reset adb" (which is the last option, on clicking the dropdown arrow) . You will then see some error report in the console, but after a minute your emulator would be ready to be used without problems. I do it all the time and it works. Try this instead of manually plugging/unplugging the device.

    0 讨论(0)
  • 2020-12-10 01:33

    I find it faster to just plug/unplug, but doing the following in command-line should do the same thing:

    adb kill-server
    adb start-server
    
    0 讨论(0)
提交回复
热议问题