Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb server is out of date. killing [duplicate]

Tags:

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

like image 233
Tomek Avatar asked Apr 19 '16 23:04

Tomek


People also ask

How do I stop adb from restarting?

To stop the adb server, use the adb kill-server command. You can then restart the server by issuing any other adb command.


1 Answers

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

like image 173
diegod3v Avatar answered Sep 19 '22 11:09

diegod3v