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: failed to get feature set: no devices/emulators found....... Please help #359

Closed
mouazdk opened this issue Nov 28, 2018 · 37 comments
Labels

Comments

@mouazdk
Copy link

mouazdk commented Nov 28, 2018

When I try to mirror my android phone it says

adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...
Please help me :'(

@npes87184
Copy link
Contributor

Hi, @mouazvd

Do you enable adb debug in your phone?

Thanks.

@mouazdk
Copy link
Author

mouazdk commented Nov 28, 2018

@npes87184 yes, i enabled adb debug but the android on my phone is 4.0.3
could be a problem ?

@rom1v
Copy link
Collaborator

rom1v commented Nov 28, 2018

my phone is 4.0.3
could be a problem ?

Yes.

The Android part requires at least API 21 (Android 5.0).

https://github.com/Genymobile/scrcpy#requirements

See #98.

@rom1v rom1v closed this as completed Nov 28, 2018
@rom1v rom1v added the android4 label Nov 28, 2018
@mouazdk
Copy link
Author

mouazdk commented Nov 28, 2018

@rom1v Thanks man, i tried a new android with Android 6, he still show me the same message

what is the solution ?

@rom1v
Copy link
Collaborator

rom1v commented Nov 28, 2018

@mesabuca
Copy link

Well I have the same issue. Android 7.0 adb enabled everything is fine except the application

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

everything is fine

adb devices?

@mesabuca
Copy link

Ok I figure out sorry. I change my cable and it works.

@jpark006
Copy link

@mesabuca what cable do you use?

I did everything as instructed and still getting the same error.

I'm using usb c to usb c connection instead of usb a. is that a problem?

@ghost
Copy link

ghost commented Aug 5, 2020

Hi,
Android 9 here and Arch Linux.

This is just to point that for me, it was the package android-udev which resolved the problem.

https://github.com/M0Rf30/android-udev-rules

@rom1v
Copy link
Collaborator

rom1v commented Oct 3, 2020

@WahajAhmedIqbal
Copy link

WahajAhmedIqbal commented Oct 17, 2020

INFO: scrcpy 1.12.1 https://github.com/Genymobile/scrcpy
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Any idea of how to solve this ? (I'm using ubuntu 20.04)

@accnetdev
Copy link

Hi,
Same here on Kubuntu 20.04.
It worked up to last week, OS updates ?

@mouazdk mouazdk changed the title adb: error: failed to get feature set: no devices/emulators found....... Please help me :'( adb: error: failed to get feature set: no devices/emulators found....... Please help Jan 12, 2021
@abhaydasah
Copy link

adb kill-server #start clean

plug your device
adb devices #check if the device is connected
or

connect via TCP
adb connect IP:PORT

export the path to currently used adb or use the same path to adb when you connected to the device, in the previous step
export ADB=$(which adb) scrcpy

run scrpy
scrcpy

@applicatlat
Copy link

Hi bois. I received this error as well.

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1

and I can see my two beloved android phones:

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1

Downloads\scrcpy-win64-v1.17>adb devices
List of devices attached
5WHssss device
10sssss device

How can I run two emulators at the same time

@rom1v
Copy link
Collaborator

rom1v commented Feb 4, 2021

@pixAndroid
Copy link

You might have enabled Developer Options!! But you haven't enabled the USB debugging option. So just go inside the Developer Options and enable it. Your scrcpy.exe will start working.

@saulsmokeitall
Copy link

He literally said he already checked and made sure it was enabled😂

@Arun-arbadev
Copy link

Arun-arbadev commented May 6, 2021

If someone still having this error over WiFi - "adb: error: failed to get feature set: no devices/emulators found"
Along with these kinds of warnings - "adb server version (41) doesn't match this client (39); killing..."

What you need to do is to set the environment variable ADB to the path of real adb binary from your installation.
On Linux, this works beautifully:

Connect USB first and run the following commands:

$ adb tcpip 5555
$ adb connect xxx.xxx.xxx.xxx:5555 

Disconnect USB now and run the following command:

$ ADB=`which adb` scrcpy

Note that back-quotes are used here: which adb. Alternatively, you can give complete path as this:

$ ADB=/path/to/sdk/adb scrcpy

@oopsmaniac
Copy link

adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Personaly i solved the problem in downloading "Universal ADB Driver v6.0" here: https://androidmtk.com/download-universal-adb-driver and in installing it in following the instructions here: https://androidmtk.com/install-universal-adb-driver After that my Redmi note 8 pro was recognized perfectly by scrcpy and no error messages anymore.

@syarz
Copy link

syarz commented May 26, 2021

I had this issue and here's how I fixed it (Android 10)

Connect the USB cable and from your android device slide down the Notification Bar and select USB for file transfer (USB Debugging must be enabled) -> keep pressing until you see the USB setting-> here in the "USB Controlled by" sub-menu select "connected devices" & in the "Use USB for" -> Transferring files / Android Auto. This should resolve the problem with the USB connection. Make sure you have installed the USB driver for your android device

@maximedrouhin
Copy link

I had the same issue, and I fixed it simply by changing the cable. Some cables are for charging only, you have to use a cable capable of transferring data.

@TheGodCode
Copy link

INFO: scrcpy 1.18 https://github.com/Genymobile/scrcpy
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 0.9 MB/s (37330 bytes in 0.039s)
[server] INFO: Device: vivo V2031 (Android 11)
INFO: Renderer: opengl
INFO: OpenGL version: 3.0 Mesa 20.0.8
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2408
[server] ERROR: Exception on thread Thread[main,5,main]
android.media.MediaCodec$CodecException: Error 0xfffffff4
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2127)
at android.media.MediaCodec.configure(MediaCodec.java:2043)
at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:237)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:90)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:61)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
at com.genymobile.scrcpy.Server.main(Server.java:255)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:433)
WARN: Device disconnected
WARN: Killing the server...

how can i fix this?

@rom1v
Copy link
Collaborator

rom1v commented Sep 16, 2021

android.media.MediaCodec$CodecException: Error 0xfffffff4

@zackiru #833

@ChienKaiMa
Copy link

I solved this "no devices/emulators found" issue on my device (LG K51S) by changing the USB option from File Transfer to Charging. Then my device showed up in adb devices as an unauthorized device. The phone showed up a hint to authorize itself, so the rest is rather simple. Hope this helps.

@cc1-a
Copy link

cc1-a commented Nov 12, 2021

When I try to mirror my android phone it says

adb: error: failed to get feature set: no devices/emulators found ERROR: "adb push" returned with value 1 Press any key to continue... Please help me :'(

Hi bois. I received this error as well.

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy adb: error: failed to get feature set: more than one device/emulator ERROR: "adb push" returned with value 1

and I can see my two beloved android phones:

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy adb: error: failed to get feature set: more than one device/emulator ERROR: "adb push" returned with value 1

Downloads\scrcpy-win64-v1.17>adb devices List of devices attached 5WHssss device 10sssss device

How can I run two emulators at the same time

you have to enable the USB debugging then that will solve the problem

@PortWhisperer
Copy link

I had the same issue, and I fixed it simply by changing the cable. Some cables are for charging only, you have to use a cable capable of transferring data.

Just want to confirm this works on windows. It looks like file transfer mode ironically doesn't invoke USB debugging from the connected workstation, but charging mode does. As soon as I changed to charging mode, I got the expected RSA fingerprint prompt on my android 8.0 device

@Netinbook
Copy link

@samee-ch
Copy link

samee-ch commented Dec 2, 2021

Hi, @mouazvd

Do you enable adb debug in your phone?

Thanks.

thanks

@divyadave1205
Copy link

divyadave1205 commented Apr 22, 2022

i have the same issue.
and i tried all of the above solutions.
but nothing worked for me.
please help to clear this issue.

@rom1v
Copy link
Collaborator

rom1v commented Apr 22, 2022

Which scrcpy version? What is the result of adb devices?

@giuseppev177
Copy link

I had a similar problem with strcpy on linux mint xfce. Everything worked when I enabled USB_DEBUGGING in my Android phone in developer mode

@rom1v
Copy link
Collaborator

rom1v commented May 6, 2022

Wht is the result of adb devices?

@mshahrin
Copy link

Ok I figure out sorry. I change my cable and it works.

how did you change your cable?

@mshahrin
Copy link

Can you show how you had done that?

@giuseppev177
Copy link

giuseppev177 commented May 18, 2022 via email

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

No branches or pull requests