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

时间:2018-10-30 15:37:05

标签: 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.

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     亚行I 10-30 20:55:55 14441 194054 main.cpp:56]版本4986621     亚行我10-30 20:55:55 14441 194054 main.cpp:56]安装为/ usr / local / bin / adb     亚行我10-30 20:55:55 14441 194054 main.cpp:56]     -adb启动(pid 14443)-     亚行我10-30 20:55:55 14443 194061 main.cpp:57] Android调试桥版本1.0.39     亚行I 10-30 20:55:55 14443 194061 main.cpp:57]版本0.0.1-4500957     亚行我10-30 20:55:55 14443 194061 main.cpp:57]安装为/ Users / praveen / Library / Android / sdk / platform-tools / adb     亚行我10-30 20:55:55 14443 194061 main.cpp:57]     亚行我10-30 20:55:56 14441 194054 auth.cpp:421] adb_auth_init ...     亚行我10-30 20:55:56 14441 194054 auth.cpp:174] read_key_file'/Users/praveen/.android/adbkey'...     错误:无法安装 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$ 

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

2 个答案:

答案 0 :(得分:1)

您必须杀死并启动adb,通过网络通过adb连接到设备时,我经常会收到此消息。
为此,请在终端/ adb中运行任何使用的命令:
adb kill-server

adb start-server
然后通过adb devices从列表中检查您的设备是否可用。在Windows / Mac中,在键入命令之前必须使用.(Mac)./(Windows)。

答案 1 :(得分:0)

最后我解决了我的问题

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

和 只需打开我们的〜/ .bash_profile

添加了以下命令:

export PATH=~/Library/Android/sdk/tools:$PATH
export PATH=~/Library/Android/sdk/platform-tools:$PATH

保存bash个人资料 将库姆放到run-react-native android