Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.76k stars 10.61k forks source link

ERROR: Could find any ADB device ERROR: Server connection failed. #3415

Open JCSuperFast opened 2 years ago

JCSuperFast commented 2 years ago

image

Hello im new here

My phone is Oppo A74 Im trying to open scrcpy in my phone but its not opening showing this error (the photo) What im gonna do? (I opened usb debugging in developer settings)

rom1v commented 2 years ago

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

o-data commented 2 years ago

Hi there, I'm having same issue as you JC, still no luck at the moment. I have feeling that Oppo purposely make it difficult or lock it.

I have tried the general Google ADB driver, driver that website advertise as Oppo, various difference version. Turning on and off Developer mode, revoke USB authorize none will find the phone. Various different version of QtScrCpy and SCRCPY, all met with failure.

I also consider trying the WiFi mode, I can see the IP, I know the right IP but SCRCPY still can't connect to it. Maybe I'm doing something wrong.

It work fine on other phone though, but not Oppo one I have. If you do find a solution, please don't forget this post and share. I thinking of emailing support and maybe they will have the right driver or they probably just say, "No, we can't give you this".

Some Driver I tried: Google USB driver (from the FAQ link), Generic one found online, Qualcomm CPU-Phone Driver, "Oppo" driver, "Oppo A74" driver.

PS: They also lock the Bootloader too. All online guide out there are generic change but it doesn't work if you follow up.

DTubbs commented 2 years ago

Your phone needs to be connected via ADB first. I'm really new to this myself so hopefully anything I get wrong can be corrected by others.

You need to install Android-platform-tools through your package manager first. This package contains the all of the adb commands you'll need to interact with your android device. Are you USB debugging or wifi debugging?

o-data commented 2 years ago

Yes, I'm aware of that DTubbs, thank you. Like I said, I can connect with my other phone but not Oppo one, at this point I'm leaning more of an Oppo issue than anything else.

Tried both with USB Debugging and WiFi, none seem to work with ScrCpy. However, I'm also using MyPhoneExplorer and this one seem to be working but each software have their own different purpose. As a trick, since MyPhoneExplorere abd.exe seem to be able to connect perhaps it an adb.exe issue, I copy/paste the file to scrcpy and hoping that it work; well it doesn't, at least not in my test.

Still looking for solution at the moment. I'll give a full installation of the Android-platform-tools once I have some plan, don't want other stuff to break while trying to fix.

rom1v commented 2 years ago

You can set the ADB environment variable to the full path (filename included) of another adb.exe if you want to try, scrcpy will use that one instead.

ImJING commented 2 years ago

QQ截图20220813101145 adb可以发现我的设备 但是一打开scrcpy就变成这样 win10+sony XZPremium

rom1v commented 2 years ago

What is the result of adb devices -l?

(please paste the terminal output as text, not a screenshot).

MadMatt69 commented 2 years ago

i connected the phone with adb but it's not working because he cant find connection i runned the scrpy-console.bat and give me this Immagine 2022-08-20 231048

what i can do? (im writing here because i cant create a new ticket)

rom1v commented 2 years ago

@MadMatt69 adb devices indicates that the device is "offline". Check stackoverlow: https://stackoverflow.com/questions/14993855/android-adb-device-offline-cant-issue-commands

samheyman commented 1 year ago

Scrcpy was working fine for me a few weeks ago with my Sony Xperia . Today it won't connect:

PS C:\Users\sam.heyman> scrcpy.exe
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
ERROR: Could not find any ADB device
ERROR: Server connection failed
PS C:\Users\sam.heyman>

I haven't changed anything, connected via USB as a developer as per usual.

rom1v commented 1 year ago

Your device is probably not detected by adb (execute adb devices).

samheyman commented 1 year ago

Yes you are right @rom1v

PS C:\Users\sam.heyman> adb devices
List of devices attached

PS C:\Users\sam.heyman>

So adb issue?

rom1v commented 1 year ago

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

Either device, USB cable, drivers, permissions… anything that can cause adb not to detect the device.

o-data commented 1 year ago

Hi guys, for those that trying to do Wi-FI/Network debug mode, I finally manage to get it to work.

Assuming that you can connect by USB (you have a working Driver), then to do Network you need to use the "Pair" command first then you can use WiFI connection afterward.

Once I have time I will write a more thorough guide

samheyman commented 1 year ago

Ok so managed to solve my issue "ERROR: Could not find any ADB device" despite it having been working for months. It was because "Use developer options" on my phone had switched off. I had to go to Settings > System > Developer options and turn "Use developer options" back on (it was off despite having allowed USB access when connecting the USB and being a developer on the phone).