Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native run-android mismatch version adb server version

I recently install react-native, initialize a project and run it

$ react-native init AwesomeProject
$ react-native run-android

Always get a error

adb server version (32) doesn't match this client (36); killing...

and my device shows me

Error

How to solve both error?

like image 655
rkmax Avatar asked Jul 21 '16 18:07

rkmax


1 Answers

This is because the adb version on your system is different from the adb version on the android sdk platform-tools. you can check that to insure:

Open the terminal and check the adb version on the system:

$adb version

And from the Android SDK platform-tool directory:

$cd ~/Android/Sdk/platform-tools
$./adb version

simple solution: Copy adb from Android SDK directory to usr/bin directory.

$sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin
like image 117
vivid Avatar answered Sep 17 '22 20:09

vivid