React-Native,Android,Gen​​ymotion:ADB服务器未确认 [英] React-Native, Android, Genymotion: ADB server didn't ACK

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

问题描述

我正在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,Gen​​ymotion:ADB服务器未确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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