Muzammil Husnain
Muzammil Husnain

Reputation: 1258

adb server version (40) doesn't match this client (41)

Android Studio is unable to install an application throwing the following error:

adb server version (40) doesn't match this client (41); killing

I tried answers from this stackoverflow question but they didn't work for me.

Upvotes: 2

Views: 1662

Answers (3)

Marzook Alshammari
Marzook Alshammari

Reputation: 9

What I did to solve this issue is that,

1 - download the latest version of platform-tools from here platform-tools,
2 - in your computer go to C:\Users"YOURCOMPUTERNAME"\AppData\Local\Android\Sdk
3 - change your old platform-tools file to platform-tools77 just to back it up
4 - Put the new platform-tools you downloaded from step 1.

That all ! if it not works download another version (older) from same link and try again till you find the one match your software.

Upvotes: 0

Lokesh
Lokesh

Reputation: 23

I have Android SDK and tools already installed and adb is present in $HOME/Library/Android/sdk/platform-tools/adb

In my case, just removing adb from my /usr/local/bin/adb which I got from adb version using rm /usr/local/bin/adb solved the issue.

Reference: https://thedarksource.com/how-to-solve-this-adb-server-version-doesnt-match-this-client-error-in-android/

Upvotes: 0

Sanaullah Irfan
Sanaullah Irfan

Reputation: 96

Please invalidate the cache and restart the android studio.

Upvotes: 3

Related Questions