Version for adaptive version control run-android

I recently installed response-native, initialized the project and started it

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

Always receive an error message

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

and my device shows me

Mistake

How to solve both errors?

+8
android react-native
source share
3 answers

This is because the adb version on your system is different from the adb version on android sdk platforms. You can check this to insure:

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

 $adb version 

And from the Android SDK platform directory:

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

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

 $sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin 
+31
source share

Are you brew install android-sdk ?

When starting react-native run-android I got the following error:

 adb server version (36) doesn't match this client (39); killing... error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK * failed to start daemon * error: cannot connect to daemon Could not run adb reverse: Command failed: /Users/beau/Library/Android/sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081 

I found that I had adb installed on /usr/local/bin/adb :

 $ ll /usr/local/bin/adb lrwxr-xr-x 1 beau admin 38 Mar 13 12:12 /usr/local/bin/adb@ -> ../Cellar/android-sdk/24.4.1_1/bin/adb 

It was installed with brew install android-sdk and was never used, so I removed it:

 brew uninstall android-sdk 

... and the adb error went away when I ran react-native run-android again.

0
source share

Thanks, this solution works for me. I struggled with this problem for several days, reinstalling android studio, adding a custom path for Sdk tools for Android in ADB settings, but nothing works. I just want to share with those who have the same problems. I am using Ubuntu 16.04. I made a copy of adb in / usr / bin as suggested, since I have adb version 1.0.32.

/usr/local$ adb version Android Debug Bridge version 1.0.39 Revision 3db08f2c6889-android Installed as /usr/bin/adb Then I updated the ADB settings under Genymotion by default, use the Genymotion tools for Android. And start the virtual device.

Within Expo XDE, run the project, then click on the device. Then I see the following message. Couldn't adb reverse: closed Opening on Android device Building JavaScript bundle: finished in 3669ms.

He works!!!

-one
source share

All Articles