adb server is out of date. killing

Tomek picture Tomek · Apr 20, 2016 · Viewed 49.9k times · Source

I'm creating my first react-native project with this tutorial: http://facebook.github.io/react-native/

When it comes to executing code and running react-native run-android I am getting:

adb server is out of date.  killing...
* daemon started successfully *

And the app on the android device is obviously not working.

I've reinstalled the SDK, tried to adb kill-server and adb start-server, but nothing seems to work

I'm using Android 4.4 and Ubuntu 14.04

Answer

diegod3v picture diegod3v · Jul 3, 2016

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