Open AjayDextrous opened 3 years ago
You have another application running on your computer which uses another version of adb (40).
You have another application running on your computer which uses another version of adb (40).
@rom1v I have android studio, I quit android studio and retried, but it doesnt work. I tried setting the adb version for scrcpy to the version used by Android Studio as well, but it doesnt seem to work
I am running into this same issue. It opens for a few seconds, then closes. With scrcpy -m 1024
, it stays open for even less time. I have tried 3 different usb ports, and I have no idea what ADB is or how I could have something open that's using it.
I get the same error.
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
adb server version (40) doesn't match this client (41); killing...
* daemon started successfully
C:\Users\liamd\Desktop\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 55.9 MB/s (41159 bytes in 0.001s)
[server] INFO: Device: samsung SM-G781W (Android 12)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
WARN: Device disconnected
Find the other program on your machine which is active and uses another version of adb.
I was able to get it to work because something else on my computer was running adb and I didn't know. Not to be an ass (because I understand it may sound that way), but next time if someone doesn't know what adb is, could you maybe give an example of what could possibly be running adb in the background? Like "If you've downloaded any other phone screen mirroring or recording program, make sure it's closed...", or explain what adb is so someone could figure out what the problem is on their end without thinking its your problem to fix.
I guess i was not clear enough, I know what adb is. it's just that I cant think of any application i have installed other than android studio that uses adb.
You should be able to reproduce even without scrcpy. Run adb devices
every second for example (or /Users/****/Library/Android/sdk/platform-tools/adb devices
).
Environment
Describe the bug scrcpy closes within seconds after opening with :
I tried different USB Cable as well as Different Port (there should't be an issue because I use the same when using android studio) I tried reducing clarity with scrcpy -m1024 but same result I also tried this:
but i still get the adb server version (40) doesn't match this client (41); error.
This is the adb logcat: