Why does adb return offline after the device string?

后端 未结 20 1329
误落风尘
误落风尘 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:58

    Reboot the device. This always fixes it on Mac OS, whereas adb kill-server does not.

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

    What did me in is was that multiple unrelated software packages just happened to install adb.exe -- in particular for me (on Windoze), the phone OEM driver installation package "helpfully" also installed adb.exe into C:\windows, and this directory appears in %PATH% long before the platform-tools directory of my android SDK. Unsurprisingly, the adb.exe included in the phone OEM driver package is MUCH older than the one in the updated android sdk. So adb worked just fine for me until one day something caused me to update the windows drivers for my phone. Once I did that, absolutely NOTHING would make my phone status change from "offline" -- but the problem had nothing to do with the driver. It was simply that the driver package had installed a different adb.exe - and a MUCH older one - into a directory with higher precedence. To fix my installation I simply altered the PATH environment variable to make the sdk's adb.exe have priority. A quick check suggested to me that "lots" of different packages include adb.exe, so be careful not to insert an older one into your toolchain unintentionally.

    I must really be getting old: I don't ever remember such a stupid issue taking so endlessly long to uncover.

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