adb logcat hangs with “waiting for device” message

后端 未结 2 1753
渐次进展
渐次进展 2021-02-11 17:21

When I type adb devices command on terminal, it shows device is connected

List of devices attached

0123456789ABCDEF

相关标签:
2条回答
  • 2021-02-11 17:31

    I am not pretty much sure if this works for you but can you please try the steps below:

    # Kill and restart      
    $ adb kill-server      
    $ adb start-server     
     daemon not running. starting it now *      
     daemon started successfully *         
    
    # Device appears, but is listed as offline
    
    $ adb devices      
    $ adb logcat
    
    0 讨论(0)
  • 2021-02-11 17:40

    I have also experienced similar problems I think I solved it by having the USB debugging option switched on within Developer Options in Settings.

    REPEAT The following steps above, it should work!

    0 讨论(0)
  • 2021-02-11 17:48

    Here is yet another potential method to solve this -- in the past, the above solutions will work, but in my case, this time, this was the thing that fixed it:

    1. Plug device into USB
    2. Settings -> Developer Options
    3. Revoke USB Debugging Authorization
    4. Unplug Device
    5. Repeat Step 1
    6. Authorize Device
    7. Repeat Steps 4&5

    adb devices should now show device

    adb logcat should now output logs from device

    0 讨论(0)
提交回复
热议问题