【问题标题】:react-native Genymotion VM Windows 10反应原生 Genymotion VM Windows 10
【发布时间】:2016-12-01 12:42:35
【问题描述】:

我正在尝试让 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,但没有帮助。

【问题讨论】:

  • 使用此代码 'adb devices' 检查您的设备并准备 react-native 桥运行 'adb reverse tcp:8081 tcp:8081' 然后 'npm start' 和 'react-native run-android' .我希望这能解决你的问题:)

标签: android react-native virtual-machine genymotion react-native-android


【解决方案1】:

您可以按照此问题的答案进行操作。只需在设置中将genymotion上AndroidSDK的路径改为已安装的android sdk即可。

react native errorTimeout getting device list. When running hello world on ubuntu

【讨论】:

    猜你喜欢
    • 2017-10-28
    • 1970-01-01
    • 2015-10-20
    • 2015-10-25
    • 2018-11-18
    • 2015-11-02
    • 1970-01-01
    • 2021-05-28
    • 2021-11-07
    相关资源
    最近更新 更多