React-Native、Android、Genymotion:ADB 服务器没有 ACK [英] React-Native, Android, Genymotion: ADB server didn't ACK

查看:29
本文介绍了React-Native、Android、Genymotion:ADB 服务器没有 ACK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Mac 上使用 React-Native、Android 和 Genymotion.当我运行 react-native run-android 时,我在启动操作结束时得到以下几行:

I am working with React-Native, Android, and Genymotion on Mac. When I run react-native run-android I get this lines at the end of the launch operation:

...
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 devices 返回这个:

List of devices attached
192.168.59.101:5555 device

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

So far I've found no solution to run my app on the emulator. Has anyone encountered the same issue?

谢谢,保罗

推荐答案

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

After more research I've realized that Genymotion uses by default its own adb.

我切换到我的主 adb(与 react-native 使用的相同)并解决了这个问题.我猜是因为首先启动了 Genymotion 的 adb,我收到了 Address already in use 错误消息.

I switched to my main adb (the same used by react-native) and it solved the issue. I guess that because Genymotion's adb was launched first I got the Address already in use error message.

这篇关于React-Native、Android、Genymotion:ADB 服务器没有 ACK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆