Hi, the newbie here again.
For some reason I can no longer launch scrcpy.
after typing the usual adb tcpip and followed by the adb connect plus scrcpy I get:
adb: error: connect failed: more than one device/emulator
ERROR: adb push" returned with value 1
So, what causes this and how can I fix it?
The problem is you have more than one devices connected to your PC.
Using adb devices first.
And start scrcpy by scrcpy -s [TARGET DEVICE'S SERIAL].
Thank you, I will investigate and try this.
But I have only one device connected to my ubuntu laptop. and that is my samsung phone.
However, I have noticed that it shows up as two distinct drives in my file manager, one called samsung android and the other mtp I believe. But this is not something new if related, and it worked before.
Just as a general FYI, if you have emulators running on your computer, those are also considered "other devices" by adb
A restart of computer and phone fixed it.
I did not have any emulators running as far as I know.
But thanks!
If you were connected both via USB and via adb connect, you have 2 devices connected in adb devices.
The problem is you have more than one devices connected to your PC.
Using
adb devicesfirst.And start
scrcpybyscrcpy -s [TARGET DEVICE'S SERIAL].
An excellent contribution, good work bredrin
I have the same issue cause I have multiple emulators running while I'm trying to use scrcpy just for my usb device. (scrcpy does work while the emulators are off, but I want to use it while they are on.) I have tried [scrcpy -s ** and scrcpy usb] however it hits me with the "error: device unauthorized." When I [adb devices] while my phone is plugged in and have the emulators running only my phone shows up in devices. (unauthorized) Yes phone usb debugging is on. How can I get everything working at the same time?
EDIT: Easy solve lol
Run your emulators before you run scrcpy. Use [scrcpy -s DEVICE_CODE] to start.
Most helpful comment
The problem is you have more than one devices connected to your PC.
Using
adb devicesfirst.And start
scrcpybyscrcpy -s [TARGET DEVICE'S SERIAL].