Adb connects and disconnects after 2 seconds
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.