Did you brew install android-sdk
?
I was getting the following error when running react-native run-android
:
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 at /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 never used, so I uninstalled it:
brew uninstall android-sdk
…and the adb error was gone when I re-ran react-native run-android
.