Adb connects and disconnects after 2 seconds I am running an AVD through Genymotion. Also, I have installed Kali Linux VM in my windows laptop. I am trying to connect to the android through the terminal

adb connect 192.168.104.103

and it connects successfully. Then I have tried to install an application with

adb install test.apk

and it is also installed successfully.
BUT, when I am trying to execute the command pull I am getting the error:

adb: error: failed to get feature set: no devices/emulators found

adb connect 192.168.104.103
already connected to 192.168.104.103:5555
adb devices
List of devices attached
device
192.168.104.103:5555
./adb pull /data/data/com.android/providers.userdictionary/databases/user_dict.db
adb server version (39) doesn't match this client (41); killing ...
* daemon started successfully
adb: error: failed to get feature set: no devices/ emulators found
adb devices
List of devices attached
adb server version (41) doesn't match this client (39); killing ...
* daemon started successfully
adb devices
List of devices attached
adb connect 192.168.104.103
connected to 192.168.104.103:5555
adb devices
List of devices attached
device
192.168.104.103:5555
./adb pull /data/data/com.android/providers.userdictionary/databases/user_dict.db
adb server version (39) doesn't match this client (41); killing ...
* daemon started successfully
adb: error: failed to get feature set: no devices/ emulators found
According to Robert's instructions problem solved:

The console output shows that you have two different and incompatible
adb versions installed. Usually Genymotion comes with an own adb
version, make sure that you are not using this potentially outdated
version. Better to have only one adb version (the newer one)
installed. Then such problems can not occur.