我在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.
...
Run Code Online (Sandbox Code Playgroud)
但是,adb devices
返回此信息:
List of devices attached
192.168.59.101:5555 …
Run Code Online (Sandbox Code Playgroud)