By Tomek


2016-04-19 23:34:23 8 Comments

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

4 comments

@serv-inc 2017-05-17 15:27:38

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.

@Juanjo Salvador 2016-10-13 07:58:49

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).

@Alex P. 2016-09-10 01:01:07

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.

@Diego Plascencia Lara 2016-07-03 01:56:58

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

@Arash 2018-07-29 10:42:30

Thanks. your work did the trick. Adb in /usr/bin was older than the adb in android sdk folder

@Ronald Araújo 2019-01-03 15:15:55

Man you saved my day. Thank you very much.

Related Questions

Sponsored Content

33 Answered Questions

[SOLVED] How can I access my localhost from my Android device?

  • 2011-01-24 08:27:52
  • gath
  • 472412 View
  • 399 Score
  • 33 Answer
  • Tags:   android

21 Answered Questions

[SOLVED] Android failed to load JS bundle

31 Answered Questions

51 Answered Questions

[SOLVED] Android ADB device offline, can't issue commands

25 Answered Questions

[SOLVED] ADB Android Device Unauthorized

39 Answered Questions

[SOLVED] Error "The connection to adb is down, and a severe error has occurred."

1 Answered Questions

[SOLVED] ADB Server is out of date, killing and restarting, for no reason

22 Answered Questions

[SOLVED] Eclipse error "ADB server didn't ACK, failed to start daemon"

  • 2011-04-18 13:22:44
  • pengwang
  • 126115 View
  • 156 Score
  • 22 Answer
  • Tags:   android eclipse adb

0 Answered Questions

Complete newb - constant adb connnection errors in Terminal

  • 2013-08-08 19:09:17
  • Shivaun R.
  • 240 View
  • 2 Score
  • 0 Answer
  • Tags:   android macos adb

Sponsored Content