android - adb 服务器版本 (39) 与此客户端 (40) 不匹配;杀... ADB 服务器没有 ACK
问题描述
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 调试桥版本 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 调试桥版本 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$
请帮帮我这不是在这个模拟器上运行的!强调文本
解决方案
最后我解决了我的问题
我已经给添加到 android 文件夹中的local.properties文件给了 sdk.dir = xxxxxxxxxxxxx
然后打开我们的~/.bash_profile
添加了这些命令:
export PATH=~/Library/Android/sdk/tools:$PATH
export PATH=~/Library/Android/sdk/platform-tools:$PATH
保存 bash 配置文件,让 coomand 运行-react-native android
推荐阅读
- python - 如何生成特定数量的随机数?
- r - 将数据框列拆分为多列
- c - 如何使用 fork 并无限期地等待运行子进程?
- python - Alexa 对唤醒词没有反应
- heroku - 为什么 heroku 中的 \d 不向我显示数据库中的表?
- reactjs - Heroku中的Http到Https重定向或如何安装react-https-redirect?
- ruby-on-rails - 如何将 Pundit 政策用于两种不同的模型?
- python - 从长纬度坐标和高程数据创建 tif 文件
- laravel - Laravel 关系 3 模型
- svelte - 如何比较 Svelte 3 中的道具变化