Why does adb return offline after the device string?

后端 未结 20 1328
误落风尘
误落风尘 2020-12-07 21:54

I use \"adb devices\" to get following result. Only one device is connected to PC by USB, but we get 8 lines of result.

Could anyone suggest the reason?

<         


        
相关标签:
20条回答
  • 2020-12-07 22:50

    I had the same issue and none of the other answers worked. It seems to occur frequently when you connect to the device using the wifi mode (running command 'adb tcpip 5555'). I found this solution, its sort of a workaround but it does work.

    1. Disconnect the usb (or turn off devices wifi if your connected over wifi)
    2. Close eclipse/other IDE
    3. Check your running programs for adb.exe (Task manager in Windows). If its running, Terminate it.
    4. Restart your android device
    5. After your device restarts, connect it via USB and run 'adb devices'. This should start the adb daemon. And you should see your device online again.

    This process is a little lengthy but its the only one that has worked everytime for me.

    0 讨论(0)
  • 2020-12-07 22:51

    I post here my question just in case is helpful for somebody else. My problem was that my colleague was connected to the same device and I was not able to connect to the same device.

    Note: I had this problem with Amazon Fire TV connecting over Wifi.

    There are 2 solutions:

    Easy to "drop" his connection (sorry buddy :)

    Restart the device
    adb kill-server
    adb start-server
    adb connect device-ip
    

    A bit more difficult but two clients can use the same device (use different TCP ports)

    Please look at this answer

    0 讨论(0)
  • 2020-12-07 22:51

    Check that the ADB version that you are running is newer than the version of the OS on the connected devices. For me, updating the ADB helped to get the device online.

    0 讨论(0)
  • 2020-12-07 22:53

    On my Galaxy Nexus with Android 4.2.2, I had the same problem initially, 'adb devices' was showing the device but with offline status (USB debugging was initially active on my device).

    These are the steps I took to remedy the situation :

    1. Disable USB debugging (Device not connected to PC)
    2. Re enable USB debugging
    3. Now connect to your PC, now a pop up on the device (not on PC) will ask you for authenticating the PC, Thats it...

    adb devices now lists both device id and no offline.

    0 讨论(0)
  • 2020-12-07 22:53

    After wasting hours on it, I have updated my version of adb and now adb devices shows my device online and I can run the app on it again.

    0 讨论(0)
  • Run SDk Manager and install Android SDK Tools and Android SDK Platform-tools updates. ADB must be updated to a new version for 4.2.x

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