5

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

Cadoiz
  • 1,446
  • 21
  • 31
brian omondi
  • 113
  • 2
  • 2
  • 5
  • Maybe my related Q/A helps somebody who didn't find an answer here: https://android.stackexchange.com/a/232860/340401 – Cadoiz Jan 14 '21 at 11:21

2 Answers2

9

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

Community
  • 1
  • 1
Yash Vardhan
  • 370
  • 2
  • 7
0

kill the adb server with the flowing command

package: com.technobd.topbdnews 

adb uninstall com.technobd.topbdnews // run this command replacing the package name
Jane Alam
  • 360
  • 2
  • 7