adb服务器版本(39)与该客户端(40)不匹配;杀死... ADB服务器未确认

Lav*_*aju 6 android react-native-android

I am developing sample application and installation procedure followed 
as followed react-native document and installed this application but 
ios  wokring fine and coming to android getting this issue.
Run Code Online (Sandbox Code Playgroud)

adb服务器版本(39)与该客户端(40)不匹配;正在杀死... ADB服务器未确认完整的服务器启动日志:/var/folders/df/3drfx_117t1g7d97fxd86j_w0000gn/T//adb.501.log服务器具有pid:14441 --- adb启动(pid 14441)--- adb I 10-30 20:55:55 14441 194054 main.cpp:56] Android Debug Bridge版本1.0.40 adb I 10-30 20:55:55 14441 194054 main.cpp:56]版本4986621 adb I 10-30 20 :55:55 14441 194054 main.cpp:56]安装为/ usr / local / bin / adb adb I 10-30 20:55:55 14441 194054 main.cpp:56] --- adb启动(pid 14443)- -adb I 10-30 20:55:55 14443 194061 main.cpp:57] Android Debug Bridge版本1.0.39 adb I 10-30 20:55:55 14443 194061 main.cpp:57]版本0.0.1- 4500957 adb I 10-30 20:55:55 14443 194061 main.cpp:smartsocket侦听器:地址已在使用中的adb服务器被远程请求杀死

* failed to start daemon
error: cannot connect to daemon
Starting the app (/Users/praveen/Library/Android/sdk/platform-tools/adb shell am start -n com.awesomeproject/com.awesomeproject.MainActivity...
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /var/folders/df/3drfx_117t1g7d97fxd86j_w0000gn/T//adb.501.log
Server had pid: 14447
--- adb starting (pid 14447) ---
adb I 10-30 20:55:57 14447 194321 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 10-30 20:55:57 14447 194321 main.cpp:57] Version 0.0.1-4500957
adb I 10-30 20:55:57 14447 194321 main.cpp:57] Installed as /Users/praveen/Library/Android/sdk/platform-tools/adb
adb I 10-30 20:55:57 14447 194321 main.cpp:57] 
adb I 10-30 20:55:57 14445 194315 adb_auth_host.cpp:416] adb_auth_init...
adb I 10-30 20:55:57 14445 194315 adb_auth_host.cpp:174] read_key_file '/Users/praveen/.android/adbkey'...
error: could not install *smartsocket* listener: Address already in use

* failed to start daemon
error: cannot connect to daemon
Srikanth:AwesomeProject Srikanth$ 
Run Code Online (Sandbox Code Playgroud)

请帮助我,这不是在此模拟器上运行的!强调文字

Lav*_*aju 8

最后我解决了我的问题

我已经给在 android 文件夹中添加的local.properties文件给了 sdk.dir = xxxxxxxxxxxxx

然后打开我们的~/.bash_profile

添加了这些命令:

export PATH=~/Library/Android/sdk/tools:$PATH
export PATH=~/Library/Android/sdk/platform-tools:$PATH
Run Code Online (Sandbox Code Playgroud)

保存 bash 配置文件,让 coomand 运行-react-native android