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: error: connect failed: no devices/emulators found #336

Closed
dirtygardner opened this issue Nov 16, 2018 · 5 comments
Closed

adb: error: connect failed: no devices/emulators found #336

dirtygardner opened this issue Nov 16, 2018 · 5 comments

Comments

@dirtygardner
Copy link

dirtygardner commented Nov 16, 2018

[TERMINAL]
uname -a: Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
lsb_release -a: Debian GNU/Linux 9.6 (stretch)
scrcpy -v : scrcpy 1.5

[DEVICE] Settings->System->About phone
Model: SM-G900R4
Android version: 8.1.0
LineageOS version: 15.1-20181113-NIGHTLY-klte

[TERMINAL]
scrcpy
adb: error: connect failed: no devices/emulators found
ERROR: "adb push" returned with value 1

@dirtygardner
Copy link
Author

dirtygardner commented Nov 16, 2018

SOLVED:
[DEVICE]
Change USB Settings: Settings->Connected devices->USB->Use USB to: Charge this device
If Use USB to: is set to Transfer files the above error occurs.

@rom1v rom1v added the adb label Nov 16, 2018
@rom1v
Copy link
Collaborator

rom1v commented Nov 16, 2018

That's still weird, it should work in any of these modes.

@leandro-lucarella-sociomantic

I have this issue using the snap package, and it doesn't go away when changing USB mode (as expected). I guess is some missing permission in the snap.

@leandro-lucarella-sociomantic

sudo snap connect scrcpy:adb-support :adb-support this worked for me. Reference: sisco311/scrcpy-snap#4

@rom1v rom1v added the snap label May 3, 2019
@rom1v rom1v closed this as completed Jun 25, 2019
@Light--
Copy link

Light-- commented May 10, 2020

sudo snap connect scrcpy:adb-support :adb-support this worked for me. Reference: sisco311/scrcpy-snap#4

error: snap "scrcpy" has no plug named "adb-support"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants