I just starting using this app and tried connecting multiple phones to pc via USB. I get this error when trying to run.
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1
Sorry if its a noob question but I am not the best at running command lines and stuff
adb devices
gives you a list of connected devices, with their serial number.
Use:
scrcpy -s your_device_serial_number
to start scrcpy for a specific device.
Maybe we can provide an interactive interface or a hint for multiple devices case.
For example:
There are more than one device connected.
1. b23b92cc
2. XXXXXX
...
Please select a specific device for continuing start scrcpy [1]:
Or:
There are more than one device connected.
1. b23b92cc
2. XXXXXX
...
Please start scrcpy with -s and specify the device serial number.
How do you feel?
I actually got it now, thanks so much. Another question is when I mimimize I can not locate the phone anymore, only the cmd window.,
How do you feel?
I don't know. It may help, but it's inherently racy (and we have to parse adb output to get more details).
Another question is when I mimimize I can not locate the phone anymore
It should still be on your desktop, at the other end of your USB cable :trollface:
More seriously, could you send a screenshot?
I don't know. It may help, but it's inherently racy (and we have to parse adb output to get more details).
Or just give a sexy response, for example:
There are more than one device connected.
Please get the correct device serial number by adb devices.
After it, start the scrcpy with --serial.
There are more than one device connected.
OK, but it still requires to parse the output of adb (to detect the cause).
And this error is "expected" over wifi (even if there is only 1 device).
There are more than one device connected.
OK, but it still requires to parse the output of adb (to detect the cause).
And this error is "expected" over wifi.
So sad.
sudo did the job for me:
@tieorange sudo is not necessary for ports >= 1024.
https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html
@tieorange Where I write that? pls
Most helpful comment
gives you a list of connected devices, with their serial number.
Use:
to start scrcpy for a specific device.