0

我正在尝试让 react-native 在我的 Genymotion 虚拟设备上工作。

当我在命令提示符下执行 react-native run-android 时,我得到以下内容:

    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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 53.693 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

VD 上什么也没有发生。我已经尝试在 Genymotion 上设置自定义 SDK,但没有帮助。

4

1 回答 1

0

你可以按照这个问题的答案。只需要将genymotion上AndroidSDK的路径更改为设置中安装的android sdk即可。

反应本机 errorTimeout 获取设备列表。在 ubuntu 上运行 hello world 时

于 2016-07-27T16:22:52.763 回答