Android:如何将Studio连接到Genymotion虚拟设备?

问题描述 投票:1回答:2

我在Android Studio v3.3.2中安装了Genymotion v1.0.7插件。当我单击Studio工具栏上的Genymotion图标时,它会启动Genymotion设备管理器对话框。我选择一个虚拟设备并单击“开始...”,设备将在新对话框中启动,Genymotion设备管理器中设备的状态行显示为“开”。 enter image description here

接下来,我单击Studio“运行”图标,然后启动“选择部署目标”对话框,但没有“已连接的设备”。我在这里错过了什么?

enter image description here

请注意,在文件/设置/插件下,Genymotion插件已启用。但Studio将插件图标显示为灰色。不确定这意味着什么:

enter image description here

我在Genymotion中使用Android SDK工具使用自定义ADB:

enter image description here

以下是Studio内的亚行位置:

enter image description here

android genymotion
2个回答
2
投票

现在我使用:adb connect genymontionip:5555

adb connect 192.168.145.101:5555

genymotion 3.0.2解决了这个问题

发行说明https://www.genymotion.com/product-release-note/desktop/#release-302


1
投票

转到Genymotion设置,ADB选项卡并设置Use custom Android SDK tools

enter image description here

然后设置您的Android Studio实例使用的相同SDK的路径(Tools - > SDK Manager)。

© www.soinside.com 2019 - 2024. All rights reserved.