最佳答案
我正在 Mac 平台上使用本机、 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 devices
返回以下结果:
List of devices attached
192.168.59.101:5555 device
到目前为止,我还没有找到在模拟器上运行我的应用程序的解决方案。有人遇到过同样的问题吗?
谢谢, 保罗