Scrcpy: What causes the "more than one divice/emulator" and how do I fix it?

Created on 1 Apr 2019  路  7Comments  路  Source: Genymobile/scrcpy

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?

Most helpful comment

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].

All 7 comments

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 devices first.

And start scrcpy by scrcpy -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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BloodPHamtOm picture BloodPHamtOm  路  3Comments

mttmllns picture mttmllns  路  3Comments

sennight picture sennight  路  3Comments

npes87184 picture npes87184  路  3Comments

qymspace picture qymspace  路  3Comments