scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Could not find any USB device

Open oaksoftYH opened this issue 3 years ago • 13 comments

When using the --otg parameter, I get this error:

scrcpy 1.24 https://github.com/Genymobile/scrcpy INFO: Killing adb daemon (if any)... ERROR: Could not find any USB device

oaksoftYH avatar May 23 '22 15:05 oaksoftYH

On Windows I guess? Is USB debugging enabled? (#3050)

rom1v avatar May 23 '22 15:05 rom1v

Yes, I'm having this error on Windows. My USB debugging is active

oaksoftYH avatar May 23 '22 16:05 oaksoftYH

Does scrcpy work for mirroring (without the otg option)?

What is the result of:

scrcpy --otg -Vdebug

Also see #3052 comments.

rom1v avatar May 23 '22 16:05 rom1v

image

Here is the result of scrcpy --otg -Vdebug Mirroring is working fine.

oaksoftYH avatar May 23 '22 20:05 oaksoftYH

??

oaksoftYH avatar May 24 '22 19:05 oaksoftYH

Windows USB drivers mess. :/

You probably have another program using the USB device. Cf https://github.com/Genymobile/scrcpy/issues/3050#issuecomment-1048600774

rom1v avatar May 24 '22 19:05 rom1v

I don't know what to do to fix this in windows

oaksoftYH avatar May 26 '22 13:05 oaksoftYH

i have the same error, i searched on issues and FAQ for a while but i didnt found any solutions :(

Kamix-GLX avatar Nov 19 '22 13:11 Kamix-GLX

THIS WILL REALLY HELP YOU (almost 90% of the time this might be the problem)

  1. Download the latest version of ADB from the official Android developer website:

    [https://developer.android.com/studio/releases/platform-tools]

  2. Extract the contents of the ADB ZIP file to a directory on your system, such as ~/Tools.

  3. Add the directory containing the ADB binary to your PATH environment variable by adding the following line to your .bashrc file:

      `export PATH=$PATH:/path/to/adb-file-just-downloaded-and-extracted/`
    
  4. Reload the .bashrc file by running the following command: . ~/.bashrc

  5. Try running scrcpy again and see if the error message goes away.

ByteBreacher avatar Feb 09 '23 10:02 ByteBreacher

THIS WILL REALLY HELP YOU (almost 90% of the time this might be the problem)

  1. Download the latest version of ADB from the official Android developer website: [https://developer.android.com/studio/releases/platform-tools]
  2. Extract the contents of the ADB ZIP file to a directory on your system, such as ~/Tools.
  3. Add the directory containing the ADB binary to your PATH environment variable by adding the following line to your .bashrc file:
      `export PATH=$PATH:/path/to/adb-file-just-downloaded-and-extracted/`
    
  4. Reload the .bashrc file by running the following command: . ~/.bashrc
  5. Try running scrcpy again and see if the error message goes away.

How to do this in Windows? As i searched this is for Linux not for the Windows is there any solution for Windows? Thanks

FBIGunner avatar Mar 12 '23 17:03 FBIGunner

Okay i think that i have a work around for this issue Just change usb mode on ur phone into charge mode and not MTP mode and it will work perfectly (as i tested lol)

FBIGunner avatar Mar 12 '23 17:03 FBIGunner

Please also read https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#hidotg-issues-on-windows

rom1v avatar Mar 12 '23 18:03 rom1v

I tried to reinstall the driver but no luck, the phone i use is LG V60(Android 12) and it has auto mode when you connect to usb it change to mode MTP(file transfer) and when i tried to change it into charge only mode it work as it should I don't think that this method is 90% sure will fix the problem but it is worth a try!

FBIGunner avatar Mar 13 '23 13:03 FBIGunner

Did you installed adb and connect it through adb as u should?, you should try to change usb mode on your phone to charging and try again, if not install your phone driver

FBIGunner avatar Aug 20 '23 10:08 FBIGunner