Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb.exe: error: more than one device/emulator #900

Closed
aria-dev opened this issue Nov 2, 2019 · 8 comments
Closed

adb.exe: error: more than one device/emulator #900

aria-dev opened this issue Nov 2, 2019 · 8 comments

Comments

@aria-dev
Copy link

aria-dev commented Nov 2, 2019

I've connect my device via TCPIP at 5555 port.

Result of adb devices

adb devices
List of devices attached
192.168.0.107:5555      device

Device IP: 192.168.0.107:5555

Running scrcpy gives the result:

INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
D:\scrcpy\scrcpy-server.jar: 1 file pushed. 1.6 MB/s (22546 bytes in 0.013s)
adb.exe: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
27183
INFO: Initial texture: 720x1280
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
Press any key to continue...

I tried using scrcpy -s 192.168.0.107:5555 as the ip address was returned as the device serial when using adb devices

Which gave the same issue.

Then I used adb shell getprop ro.serialno to get my device's serial no ; 8HUW4HV4Y9SSR4S8

Then with this new serial no I tried: scrcpy -s 8HUW4HV4Y9SSR4S8 which gave a new error:

INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
adb: error: failed to get feature set: device '8HUW4HV4Y9SSR4S8' not found
ERROR: "adb push" returned with value 1
Press any key to continue...

This might be because the device is not connected via usb and the default serial returned is the Local ip address.

I've tried all previous solutions. Did not work.

@rom1v
Copy link
Collaborator

rom1v commented Nov 2, 2019

The message more than one device or emulator is "expected" over wifi (see #5). This is not your real error here.

Does it work over USB?

@aria-dev
Copy link
Author

aria-dev commented Nov 2, 2019

Yes, it does work over USB. Alternatively, I've tried this using a different phone and it worked without a hitch. But for the phone I want to test, with, I am getting issues.

@rom1v
Copy link
Collaborator

rom1v commented Nov 2, 2019

This very same device works over USB?

Check the output of adb logcat when you start scrcpy for this device.

@aria-dev
Copy link
Author

aria-dev commented Nov 5, 2019

No, not the same device. I’ll comment soon with the logcat.

@wazerstar
Copy link

I'm not sure why I had so many problems AFTER reformatting machine, would give me the same problems, even tho giving the serial ID it would never work.

I use this and works everytime on my windows session to adb android

Starting mass kill and disconnect and adding a few breaks did it all for me.

adb kill-server
adb kill-server
adb kill-server
timeout /t 1 /nobreak
adb disconnect
adb disconnect
timeout /t 1 /nobreak
adb connect 192.168.1.10:5555
timeout /t 1 /nobreak
adb tcpip 5555
timeout /t 1 /nobreak
scrcpy -m1280

@rom1v
Copy link
Collaborator

rom1v commented Feb 9, 2020

Over tcpip, you will have this message due to a bug with adb reverse on the device (see #5), but scrcpy will then switch automatically to adb forward.

@wazerstar
Copy link

wazerstar commented Feb 9, 2020

Over tcpip, you will have this message due to a bug with adb reverse on the device (see #5), but scrcpy will then switch automatically to adb forward.

Why is it that this works for me in this batch

https://streamable.com/bm2b2

adb kill-server
adb disconnect
adb disconnect
adb connect 192.168.1.10:5555
adb tcpip 5555
timeout /t 1 /nobreak
scrcpy -m1280

But removing 1 disconnect then it does not.

https://streamable.com/7tznp

adb kill-server
adb disconnect
adb connect 192.168.1.10:5555
adb tcpip 5555
timeout /t 1 /nobreak
scrcpy -m1280

Sorry for the dumb/lame sounds people made on discord, numnucks :D

Edit:

just figured out that I can also just use this in a batch file and it will work.

adb kill-server
adb connect 192.168.1.10:5555
scrcpy -m1280 -s 192.168.1.10:5555

But simply using only scrcpy -m1280 -s 192.168.1.10:5555 will not work.

@mochadwi
Copy link

After a while, I've forgot that setup the adb to debug over WIFI, after disconnected it using adb disconnect I'm able to debug over USB again.

@rom1v rom1v closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants