android - 为什么当我运行 "adb devices"时我的 genymotion 设备没有列出

标签 android android-emulator virtualbox genymotion nativescript

我正在使用 nativescript 开始我的第一个 android 项目。

我想用 genymotion 运行我的项目。

在 genymotion GUI 设置/ADB 中,我正在使用自定义 Android SDK 工具,genymotion 告诉我找到了 android SDK 工具。 VirtualBox 路径也是有效的,当我重命名设备时,VirtualBox 名称和 Genymotion 名称都发生了变化。 Virtualbox VM 已关闭。

我启动 genymotion 并打开模拟器并显示黑屏。然后我运行:

tns run android

根据 nativescript docs

我得到的输出是:

Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.

然后我尝试运行:

adb devices

得到一个空列表,所以我的设备似乎没有被识别,我只是不知道为什么。

我也试过运行:

tns run android --emulator --geny nameOfDevice

这将启动模拟器,但再次只是一个空白屏幕。所以我猜 nativescript 知道设备但 adb 不知道?

如果我遗漏了一些明显的 Android 问题,将不胜感激并提前致歉。

最佳答案

您还应该确保您的 GenyMotion 使用正确的 SDK。

转到:>> 设置>> ADB 并选择使用自定义 Android SDK 工具

如果找到 SDK 路径,它将被标记为

成功找到 Android SDK 工具!

关于android - 为什么当我运行 "adb devices"时我的 genymotion 设备没有列出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39735755/

相关文章:

ANDROID-分配内存失败: 1455

virtualization - 如何在 VirtualBox 和 OSX 中使用 RDC

unix - 如何列出 Virtual Box 下的所有虚拟机?

java - 无法检索 ListView 之外的列

android - listView 中的滚动条...自定义它。

java - Android套接字连接组合发送

oracle - 如何从主机(Windows)访问 VirtualBox 中的 Oracle DB

android - 如何在 android listview 中从 json 动态创建 View ?

android-emulator - Android 汽车模拟器 "no system images installed for this target"

android - 在没有 GUI 的情况下运行 Android 模拟器( headless (headless) Android)