-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adb server version (41) doesn't match this client (40) #527
Comments
A priori, you just upgraded your platform-tools. Once the server is killed and it started the adb server 41, it should work. Does it happen again if you start scrcpy once again? |
Yes, sure. I tried many many times before posting here. |
So you have several adb versions running. Something on your system starts (and seems to restart when it dies) the server with adb 41. And scrcpy uses your adb 40. What is the result of
A better way would be to change your |
Ok, thank you for your help. I had two different versions of adb: one at /usr/local/bin and one in a custom path. Now everything si fine. |
excuseMe... i have exact this problem... i have Android Debug Bridge version 1.0.41 but when i start it telle me: adb server version (40) doesn't match this client (41); killing... exact like your.... |
@rom1v can you explain me better how to use this command: ADB=/path/to/some/adb scrcpy |
The idea is to set the environment variable In a shell (typically on linux), you can set the variable for a single command: VAR=value command On Windows, you can set it globally in Windows preferenced, but you can also set it locally: set VAR=value
command So: set ADB=C:\path\to\adb.exe
scrcpy |
thank... @rom1v
now i try to do that i understand of your suggest; but i cannot understand why dont go! i check and i havent any other version of ADB! is only in one place! thanYou |
You must use the full path to the binary: set ADB=C:\...\AppData\Local\Android\Sdk\platform-tools\adb.exe |
ok true, i set this but have same problem :( |
@rom1v |
What are the results of:
and
? also:
|
adb version: C:\Users...\AppData\Local\Android\Sdk\platform-tools\adb.exe version echo %PATH%: thankYouuu for now |
Oh, but your problem is the reverse:
You correctly uses v41, but some app on your computer executes adb commands with adb v40. You must find this app and stop it 😉 |
yes, when i use adb devices on cmd i have this error... who use other adv v40??????? i think visual studio code... but no! it dont find phone for the same problem like Android studio! ehmmmmm yes probably yess... i cannot understand why; when i start to play emulator on Android Studio; and if there is my phone on usbCable... all process go in error!!!! |
who uses ADB version 40? i cannot understand :( :( :( |
Check in your process list (in your taskmanager or something). |
@rom1v i have exact this problem... i dont know who restart adb.exe every time i stop and delete process on Task Manager (windows).... |
i follow the process!!! i understand!!!!!!!!!!!!!!!! probably is app that i use for view windows on android tablet to start every time ADB!!!! |
@rom1v |
fixed this by doing the following: going into GenyMotion settings -> ADB tab, |
thanks very much it works correctly!! it takes me a minute |
still doesnt work for me on ubuntu. |
@toles04 What is your exact error message?
? |
It work for me
|
Hi, what worked for me. My Android Studio has an adb file inside /home/myuser/Android/Sdk/platform-tools/ and with the version 1.0.41. Note where I put myuser could be your name, whatever, just locate your Android path. My error was: When you type just adb in terminal, this command will be related with the adb archive inside /usr/bin. So, I did these steps inside terminal:
With this done, right now I have the same adb file to both of them, so, if in the future the SDK Manager ask to upgrade platform-tools, remember to do it again if the error back to appear. |
It's ok. But is better to do simlink to the folder directly and then, when sdk upgrade is'nt to make changes.
Enviado desde Yahoo Mail para Android
El sáb., 11 de abr. de 2020 a la(s) 12:41, jonnimoura<notifications@github.com> escribió:
Hi, what worked for me.
My Android Studio has an adb file inside /home/myuser/Android/Sdk/platform-tools/ and with the version 1.0.41.
Note where I put myuser could be your name, whatever, just locate your Android path.
My error was:
adb server version (41) doesn't match this client (39)
When you type just adb in terminal, this command will be related with the adb archive inside /usr/bin.
So, I did these steps inside terminal:
- adb version
Android Debug Bridge version 1.0.39
- cd /usr/bin
- sudo rm adb
- cd /home/myuser/Android/Sdk/platform-tools/
- Please check if there is an adb file inside your path
- Now copy to /usr/bin
sudo cp adb /usr/bin
- adb version again
Android Debug Bridge version 1.0.41
With this done, right now I have the same adb file to both of them, so, if in the future the SDK Manager ask to upgrade platform-tools, remember to do it again if the error back to appear.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi, adb server version (31) doesn't match this client (41); killing... Android Debug Bridge version 1.0.31 |
Hello. The solution for this issue is like this:
|
For Ubuntu users, the problem may be because the Snap installation method has another version of ADB different from the custom one on your machine. I had the same problem. I would suggest building the project yourself (its not that hard trust me) after removing the Snap version from your machine. It worked for me. |
Even I am facing the same problem of scrcpy using the adb version 39 from /snap/scrcpy/221/usr/lib/android-sdk INFO: scrcpy 1.13 https://github.com/Genymobile/scrcpy
What i want is a way to let me work on both flutter and scrcpy togather. |
When you encounter this problem, I suggest to use a non-snap version. For example, you could build the client: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#prebuilt-server |
I second the non-snap installation suggestion. It worked for me previously. |
On Linux with GNOME, is possible to edit the
Another option is use the Alacarte to do this. In this case the
|
I'd like to confirm, that the I'd expect that proper implementation should prefer |
That's what scrcpy does (it just calls The problem is that snap runs scrcpy in some "container", where the PATH is different. So by setting |
It makes sense. I'd expect that Linux/Mac devs install SDK using Android Studio and it's SDK Manager, which installs Maybe this is worth mentioning in |
Yes, this can be many useful because this error is recurrent. Even exists an opened issue about it. |
Since I'm using linux, my solution was similar to yours. |
@rom1v |
Sat Sri Akal ji I had 2 adb's in my mac found them using FindAnyFile |
thanks for you , it worked will |
OKEY Just locate the android studio build tools folder in settings of
Genymotion , to use the same adb version meaning both the Android studio
and the Genymotion emulator, so go for settings in genymotion under
setting expand adb then set the folder location.
…On Sun, Jan 26, 2020 at 10:55 PM reevrm ***@***.***> wrote:
Help me.
I try installing scrcpy on Deepin Linux
when i run scrcpy
it show
INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy> [100%]
/data/local/tmp/scrcpy-server.jar [server] ERROR: Exception on thread
Thread[main,5,main] java.lang.IllegalArgumentException: The server version
(1.12.1) does not match the client (1.12) at
com.genymobile.scrcpy.Server.createOptions(Server.java:78) at
com.genymobile.scrcpy.Server.main(Server.java:162) at
com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at
com.android.internal.os.RuntimeInit.main(RuntimeInit.java:388)
Is there something I did wrong while installing it?
i am using 1.12.1 prebuild server
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#527?email_source=notifications&email_token=AMUKEZPMWMHMLTOI4IO4J63Q7XTB3A5CNFSM4HL5MNC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ54LCA#issuecomment-578536840>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMUKEZKYJ6H3T6472IU3WKLQ7XTB3ANCNFSM4HL5MNCQ>
.
|
Link in Stack Overflow Got a quick way to do it First Then |
Great solution |
rom1v commented on 30 Jul 2019 adb server version (40) doesn't match this client (41); You correctly uses v41, but some app on your computer executes adb commands with adb v40. You must find this app and stop it 😉In my case, I had AirDroid App installed and it uses adb. That's why I had the bug. Simply uninstall it and everything is working! |
it helps! |
I'm facing this error starting from today:
I attached the content of /var/folders/0q/jh77wwcx1cs989k89kv79mqr0000gn/T//adb.501.log
adb.501.log
The text was updated successfully, but these errors were encountered: