What should I do if the adb server version doesn't match this client?

1.7K    Asked by amit_2689 in Cyber Security , Asked on Feb 4, 2022

 I executed cmd adb devices from terminal but instead of getting list of connected devices, I observed below error: List of devices attached

adb server version (32) doesn't match this client (36); killing... * daemon started successfully * How can I get a list of connected devices?

Answered by Aashna Saito

Down vote I finally solved this issue - the adb server version doesn't match this client by uninstalling HTC Sync.

The issue is caused by multiple running or older versions of adb.exe.

Open task manager and locate adb.exe, right click -> Open file location, in my case it showed C:Program Files (x86)HTCHTC Sync ManagerHTC Syncdb.exe.

Your Answer

Answer (1)

If you encounter the error "ADB server version doesn't match this client" when using ADB (Android Debug Bridge), it typically means that the version of ADB on your computer is different from the version expected by the Android device or emulator you are trying to connect to. Here’s what you can do to resolve this issue:

  Steps to Resolve "ADB Server Version Doesn't Match This Client":

Restart ADB Server:

Sometimes, simply restarting the ADB server can resolve version mismatch issues.

  adb kill-serveradb start-serverUpdate ADB:

Ensure that you have the latest version of ADB installed on your computer. You can download the latest Android SDK Platform Tools from the Android Developers website and update your local installation.

After updating, restart the ADB server.

  adb kill-serveradb start-serverCheck ADB Path:

Verify that your system PATH environment variable includes the directory where the updated ADB executable (adb) is located. This ensures that the correct version of ADB is used when you run commands.

You can check the ADB version with:

  adb version

Restart Device or Emulator:

If you are still having issues after updating ADB, restart the Android device or emulator you are trying to connect to. Sometimes, restarting the device can help synchronize with the ADB server.

Clear ADB Cache:

Clearing the ADB cache can sometimes resolve persistent issues.

  adb kill-serveradb devices  # This should restart the server automatically

Reconnect Device or Emulator:

Disconnect and reconnect the Android device or emulator to your computer. This can trigger ADB to establish a new connection with the correct version.

Check Compatibility:

Ensure that the version of ADB you are using is compatible with the Android device or emulator version. Sometimes, using an older version of ADB with a newer device may cause compatibility issues.

Check for System Updates:

Ensure that your operating system and Android SDK Platform Tools are up to date. System updates can sometimes include fixes and improvements that resolve such issues.

Example Scenario:

If you're using ADB to debug an Android application and encounter the version mismatch error, follow the steps above to ensure that your ADB setup is correctly configured and up to date. This will help ensure smooth communication between your computer and the Android device or emulator.

By following these steps, you should be able to resolve the "ADB server version doesn't match this client" error and establish a successful connection with your Android device or emulator.








5 Months

Interviews

Parent Categories