Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.46k stars 10.58k forks source link

Error at first run in Windows #2116

Open travellingtrainer opened 3 years ago

travellingtrainer commented 3 years ago

Hello, I copied all files into a folder and set a PATH to the folder (C:\Screencopy) I have run the 64bit scrcpy.exe as administrator I typed scrcpy in CMD and got this error:

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy adb: error: failed to get feature set: no devices/emulators found ERROR: "adb push" returned with value 1

Have I missed a step? My phone is attached to USB on the PC

rom1v commented 3 years ago

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#device-not-detected

rom1v commented 3 years ago

Did you enable USB debugging on your device?

RndyP commented 3 years ago

If you look at the youtube videos on scrcpy installation, half of them don't mention installing the ADB drivers first. My Windows 7 box needed them installed. I got the dreaded "adb push" error. Don't know why adb can't figure out the drivers aren't installed and instead of "adb push" maybe something like "ADB drivers not found"??

rom1v commented 3 years ago

Don't know why adb can't figure out the drivers aren't installed and instead of "adb push" maybe something like "ADB drivers not found"?

adb just knows that it cannot detect the device. It can't know if this is because no device is plugged or if the system is missing a driver to detect it.

RndyP commented 3 years ago

On Windows, shouldn't the ADB driver installation leave some bread crumbs in the registry that ADB can read?

rom1v commented 3 years ago

I guess it can't. This is the same issue if your printer is not detected, your computer believes that there is no printer plugged, although only the driver is missing… But I'm not an adb developer :)