'more than one device/emulator - Error while trying to cast with Genymobile

I have attached a device and emulator. When I'm trying to cast screen with Genymobile I'm getting:

INFO: scrcpy 1.10 https://github.com/Genymobile/scrcpy adb: error: failed to get feature set: more than one device/emulator



Solution 1:[1]

Refer to the link: https://github.com/Genymobile/scrcpy/issues/185#issuecomment-405929700

  1. Find the device/emulator identifier with adb devices
  2. Cast in the Genymobile with scrcpy -s YOUR_DEVICE_COD

Solution 2:[2]

I tryed scrcpy on latest linux mint xfce distribution

I connected my android 10 smartphone via USB cable, started scrcpy from shell and got a similar error message.

I read somewhere that USB DEBUGGING should be enabled on my android smartphone.

So I enabled developer mode in my phone, enabled USB DEBUGGING and the connected my phone to pc.

Started strcpy and everything was alright

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vishnu benny
Solution 2 Giuseppe Venturin