adb server version doesn't match this client

后端 未结 30 2776
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 09:49

Whenever I try to run adb devices:

            $ adb devices
            * daemon not running. starting it now *
            * daemon started su         


        
30条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 10:36

    As mentioned above, the problem comes due to a conflicting version of adb.exe shipped with HTC Sync. Removing it from PATH won't help, as htcUPCTLoader.exe that constantly runs in the background will still re-launch the wrong ADB version.

    One solution would be to completely remove adb.exe from the HTC Sync folder, however this would break HTC Sync.

    I've just coded a simple tool that replaces the old adb.exe with a stub that invokes the latest adb.exe from the SDK directory eliminating the conflicts (e.g. version 1.0.25 coming with HTC Sync and 1.0.29 with Android SDK).

    ADB Fixer tool

    The tool can be downloaded from http://visualgdb.com/adbfix

提交回复
热议问题