Adb Server Is Out Of Date. Killing
Solution 1:
Open Android Studio, and then update all your build tools, install the SDKs that you need for your device and ensure that have you set ANDROID_HOME
env var to the same dir that you have in Android Studio (commonly in /home/you/Android/Sdk
), also update react-native-cli node package. Run adb kill-server
and adb start-server
.
Probably you will have problems with adb version, just change your bin:
sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
Solution 2:
In the latest adb
update the adb server is out of date. killing... message has been replaced with more informative adb server version (%d) doesn't match this client (%d)
So this solution is applicable to both.
The root cause of the error is that your system has multiple adb
binaries of different versions) installed. These adb
binaries may come from different sources - distributed together with some development tools or even installed from your linux distribution official repository. I would strongly advise against using any of those sources. The official source of the most recent version of adb
is the platform-tools
package from the Android SDK. The adb
tag info page contains the direct links to the package.
So if you have Android SDK already installed - just update the platform-tools
package to the latest version using SDK Manager. If not - download and unpack the contents of platform-tools.zip
file for your platform to a folder. Add that folder to your $PATH
. Now kill all running adb
processes and make sure to find all other copies of adb
and delete them. In rare cases some software might stop working. In that case you would need either change that application's internal setting telling it where to find the new binary or if the application uses hard-coded adb
location - just create a symlink to the new location.
That's it. No more server/client version mismatches. Although you might need to repeat the procedure after installing another software which comes prepackaged with its own adb
copy.
Solution 3:
It might be that you installed the adb
package in addition to the SDK's. In that case, a
sudo apt purge adb
might solve the problem.
Solution 4:
I'm getting this error using ADB (1.0.32) and Genymotion (2.8.2). My solution was change the ADB of the VM, from my local Android SDK's ADB to Genymotion ADB (default).
Post a Comment for "Adb Server Is Out Of Date. Killing"