Failed adb using react-native in ubuntu

0

I have a problem running a react-native app on my phone.

With everything configured I run

react-native start
react-native run-android

and the following error appears:

  

05:32:56 E / adb: adb server version (32) does not match this client (39); killing ...

So I managed to understand that I have installed adb twice on the computer, but I can not solve the problem.

    
asked by anonymous 06.12.2017 / 20:37

1 answer

1

I solved the problem already, if anyone else has the problem I did the following

sudo find -name adb

I saw one of the copies in the

  

./ usr / bin / adb

and one in

  

. / home // Android / Sdk / platform-tools / adb

Then I copied the one from the android folder to the bin with

sudo cp ./home/<usuario>/Android/Sdk/platform-tools/adb ./usr/bin/
    
06.12.2017 / 21:27