adb server version doesn't match this client

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

Whenever I try to run adb devices:

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


        
相关标签:
30条回答
  • 2020-11-22 10:36

    First close All the things which use ADB. (Android Studio, Eclipse, Emulator(Bluestack as well)) and then do

    adb kill-server
    adb start-server
    

    In my case I just got update of Studio.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-11-22 10:37

    Helped for me: stop HTC Sync (in system tray) and rename HTC's adb.exe (C:\Program Files (x86)\HTC\HTC Sync 3.0\adb.exe).

    0 讨论(0)
  • 2020-11-22 10:37

    OS: Ubuntu

    There are more than 1 adb are running. Check the current adb:

        which adb
        Expected Output : ANDROID_SDK/platform-tools/adb
    

    Normally the result will be:

        /usr/bin/adb
    

    Delete this older version by:

        cd /urs/bin
        sudo rm adb
    
    0 讨论(0)
  • 2020-11-22 10:37

    If the device you're trying to interact with is a physical phone connected via USB, you can unplug it and plug it back and and it should work. Sometimes it just gets out of sync I think.

    0 讨论(0)
  • 2020-11-22 10:40

    Okay, there is another instance of adb.exe distributed with "Lenovo Photo Companion". A friend of mine has a Lenovo Yoga notebook and had this software installed which includeded another adb.exe

    Deinstalling it solved the problem.

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