Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scrcpy not working while VISUAL STUDIO CODE is working

I'm using Ubuntu 20.10 and I have installed scrcpy to mirror my phone screen while creating flutter applications, but when I just open Vs code, scrcpy closes with this error :: adb server version (41) doesn't match this client (39); killing...

like image 325
Mohamed Abdelmaged Avatar asked Mar 03 '26 06:03

Mohamed Abdelmaged


1 Answers

this error is Conflicts between adb versions https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions

Solution is set ADB env is path to Android Sdk platform-tools adb

/home//Android/Sdk/platform-tools/adb

in Linux, you can

export ADB=/path/to/your/adb

in Win,

set ADB=/path/to/your/adb
like image 79
Nhut Pham Avatar answered Mar 06 '26 01:03

Nhut Pham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!