react-native - 使用 Genymotion 模拟器在 Ubuntu 上运行 React-Native Android 应用程序

标签 react-native genymotion

我正在使用 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/

相关文章:

javascript - 如何在 ListView React-native 中过滤数据?

android - react-native run-android plugin not found and compile sdk is not specified

android - 从 Appcelerator Studio 运行 Genymotion Android 模拟器时出现 "Android SDK version not found"错误

android - 适用于 Xamarin 的 Genymotion Android 模拟器

android - react native : Unable to download JS bundle from the Dev Server

react-native - 未找到 React/RCTBridgeDelegate.h' 文件

ios - AsyncStorage 引用崩溃 react iOS 上的 native 应用程序

reactjs - 在React应用程序中使用全局配置对象

java - 第一个程序导致大量错误

android - Genymotion模拟器对于运行android应用程序有效吗?