'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.
Solution 1:[1]
Please invalidate the cache and restart the android studio.
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sanaullah Irfan |
Solution 2 | Lokesh |