android - adb 服务器版本 (39) 与此客户端 (40) 不匹配;杀...亚行服务器没有确认

标签 android react-native

<分区>

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 服务器没有 ACK 完整的服务器启动日志:/var/folders/df/3drfx_117t1g7d97fxd86j_w0000gn/T//adb.501.log 服务器有 pid:14441 ---亚行开始(pid 14441)--- adb I 10-30 20:55:55 14441 194054 main.cpp:56] Android 调试桥版本 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] ---亚行开始(pid 14443)--- adb I 10-30 20:55:55 14443 194061 main.cpp:57] Android 调试桥版本 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:57] 安装为/Users/praveen/Library/Android/sdk/platform-tools/adb adb I 10-30 20:55:55 14443 194061 main.cpp:57] adb I 10-30 20:55:56 14441 194054 auth.cpp:421] adb_auth_init ... adb I 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$ 

请帮帮我这不是在这个模拟器上运行! 强调文本

最佳答案

终于解决了我的问题

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

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

添加了这些命令:

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

保存 bash 配置文件 给 coomand run-react-native android

关于android - adb 服务器版本 (39) 与此客户端 (40) 不匹配;杀...亚行服务器没有确认,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53067917/

相关文章:

java - Android 自定义 View ClassNotFound

android - 上下文切换是否占用了大量时间?

android - 在 native react 中调用本地主机 API(android 设备 : connected through local)

android - 全文未显示在 react native 的警报对话框中

android - 如何在 Android 中的另一个 View 上为文本设置动画?

android - ASyncTask、隐藏 fragment 、保留实例和屏幕方向变化

java - 从 Java 转换为 Kotlin OnClickListener

react-native - react native : what to set minimum deployment target to?

android - 样式不会在 React Native 上重新渲染

javascript - 按钮 - 启用和禁用