Problems caused by multiple adb versions in the system

adb server version (31) doesn't match this client (41); killing 。

Here you can see that the adb version does not match, and an error is reported to end the process.

Multiple versions of adb are installed, and adb is installed when android-sdk is installed. Then installing the virtual machine will also install adb. When using the adb command, the system uses android-sdk to call the virtual machine, and the virtual machine uses its own adb. There will be a version mismatch problem.

1. Enter the where adb command in the terminal:

2. Find the android-sdk installation directory and copy adb. Then find the installation directory of the virtual machine, back up the adb in the virtual machine, and then replace the adb in the virtual machine directory.

Find the virtual machine installation path

Backup the adb in the virtual machine, then replace the adb in the virtual machine directory

Now there is no error

Guess you like

Origin blog.csdn.net/a1809032425/article/details/131057939