Error text
adb server version (41) doesn't match this client (39); killing... adb server is out of date. killing... error: could not install *smartsocket* listener
adb server version (41) doesn't match this client (39); killing... adb server is out of date. killing... error: could not install *smartsocket* listener
The computer has several copies of adb. One starts the server, another tries to connect with a different version, and they kill each other.
which -a adb or where adb.adb version.platform-tools/adb and put it first in PATH.adb kill-server, then start with the single copy.which -a adb adb version adb kill-server sdkmanager "platform-tools" export PATH=$ANDROID_HOME/platform-tools:$PATH
Update platform-tools with sdkmanager and remove hand-copied adb files.
Author and license: Nibras Code