Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb server version (40) doesn't match this client (41); killing [duplicate]

Couldn't start project on Android:

adb server version (40) doesn't match this client (41); killing...
could not read OK from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon

i have installed android platform development tools but it still doesn't work even after changing Genymotion settings to use my android Software development kit instead of its default android tools

like image 564
brian omondi Avatar asked Jul 09 '19 08:07

brian omondi


People also ask

How do I fix an ADB connection error?

In tools menu,Android-> untick enable adb Integration and Then OPEN widows task manager n manually end process adb.exe This also solved my issue as der were multiple adb.exe running. Show activity on this post. Restart the computer. Now, disconnect the device, connect it, Make sure USB debugging Option is enabled.

What is ADB server and client?

The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device. It is a client-server program that includes three components: A client, which sends commands.


Video Answer


1 Answers

In my case the problem occurred because of two ADB paths. I actually moved my Android SDK (due to lack of space in system drive) from one path to another and set up the environment variables accordingly. Starting and killing the server didn't help so I followed this thread in GitHub

But unlike that thread, instead of replacing the files in scrcpy folder, I replaced the files in C:\Program Files\Genymobile\Genymotion\toolscopied the files from sdk\platform-tools

replaced the files in the Genymobile\Genymotion\tools

And it started working after that

like image 110
Yash Vardhan Avatar answered Oct 25 '22 19:10

Yash Vardhan