加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

React-Native,Android,Gen??ymotion:ADB服务器没有确认

发布时间:2020-12-15 07:14:14 所属栏目:百科 来源:网络整理
导读:我在Mac上使用React-Native,Android和Genymotion。当我运行react-native run-android我得到这行在启动操作结束: ...04:54:40 E/adb: error: could not install *smartsocket* listener: Address already in use04:54:40 E/adb: ADB server didn't ACK04:54
我在Mac上使用React-Native,Android和Genymotion。当我运行react-native run-android我得到这行在启动操作结束:
...
04:54:40 E/adb: error: could not install *smartsocket* listener: Address already in use
04:54:40 E/adb: ADB server didn't ACK
04:54:40 E/ddms: '/Users/paulbrie/Library/Android/sdk/platform-tools/adb,start-server' failed -- run manually if necessary
04:54:40 E/adb: * failed to start daemon *
04:54:40 E/adb: error: cannot connect to daemon
:app:installDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Timeout getting device list.
...

但是,adb设备返回:

List of devices attached
192.168.59.101:5555 device

到目前为止,我没有找到解决方案来运行我的应用程序在模拟器。有没有人遇到同样的问题?

谢谢,
保罗

经过更多的研究,我意识到Genymotion默认使用自己的adb。

我切换到我的主要adb(同样用于react-native),它解决了问题。我想,因为Genymotion的adb首先启动,我得到地址已在使用错误消息。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读