scrcpy: adb-server version mismatch + device offline error

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • Ubuntu 20.04
  • scrcpy 1.21
  • snap
  • device model: Laptop
  • Android version: 11

Describe the bug On terminal command scrcpy with tcp/ip connected device, I get the following output:

scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
adb server version (41) doesn't match this client (39); killing...
* daemon started successfully
error: no devices/emulators found
ERROR: "adb get-serialno" returned with value 1
ERROR: Could not get device serial
ERROR: Server connection failed

That’s because scrcpy apperently uses an old adb-server version.

When I try connecting with scrcpy’s version using scrcpy --raw-key-events --tcpip=192.168.178.48:39777, I get:

scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
INFO: Connected to 192.168.178.48:39777
adb: error: failed to get feature set: device offline
ERROR: "adb push" returned with value 1
ERROR: Server connection failed

although I can connect to it just fine with adb connect 192.168.178.48:39777.

About this issue

Most upvoted comments

What is the upgrade command in this case for scrcpy?

  1. For Windows, download the archive of the latest version: https://github.com/Genymobile/scrcpy#windows
  2. Yes (double-click on “open_a_terminal_here.bat” once you extracted the release, then type adb devices -l)