我正在使用 react-native 构建一个应用程序,并且我使用的是 android 默认模拟器,没有任何问题。我遇到的唯一问题是模拟器真的很慢。
我想尝试 genymotion 并安装了它。当我运行 react-native run-android 时,它怎么找不到 Genymotion 模拟器。这是我在控制台中看到的错误。
BUILD SUCCESSFUL
Total time: 8.329 secs
This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html
ADB server didn't ACK
* failed to start daemon *
error:
Starting the app (/home/hduser/Android/Sdk//platform-tools/adb shell am start -n com.legacitinative/.MainActivity...
error: no devices/emulators found
我不确定为什么找不到模拟器。
感谢任何帮助。
谢谢 萨提什
最佳答案
$ cd/home/hduser/Android/Sdk/platform-tools
$ ./adb reverse tcp:8081 tcp:8081
试试 adb 是否可以看到你的设备
$ ./adb devices
关于react-native - 使用 Genymotion 模拟器在 Ubuntu 上运行 React-Native Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41698565/