Genymotion Android模拟器-ADB访问权限? [英] Genymotion Android emulator - adb access?

查看:215
本文介绍了Genymotion Android模拟器-ADB访问权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7 PC上为Oracle VirtualBox( http://www.genymotion.com/ )下载了Genymotion Android模拟器,使用Google Apps设备创建了一个虚拟的Jelly Bean。如何启用ADB访问权限?在系统设置/开发人员选项中,我已经启用了 USB调试,但是键入 adb设备显示已连接设备的空列表。尝试为此虚拟机添加USB端口并重新启动虚拟机,但这无济于事。

I downloaded Genymotion Android emulators for Oracle VirtualBox (http://www.genymotion.com/) on my Windows 7 PC, created a virtual Jelly Bean with Google Apps device. How do I enable ADB access to it? In system settings/Developer options I already enabled "USB debugging", but typing "adb devices" shows empty list of connected devices. Tried adding a USB port for this VM and rebooting VM, but it does not help.

Greg

推荐答案

我们需要使用仿真器的IP地址进行连接,因此查找正在运行的仿真器的IP地址(在仿真器标题栏中显示),并使用类似以下内容的方法:

We need to connect with IP address to the emulator, so look for the IP address of the running emulator (it's shown in the emulator title bar) and use something like:


adb connect 192.168.56.102:5555

adb connect 192.168.56.102:5555

之后 adb 正常工作。您还可以通过启动 Genymotion Shell并键入设备列表来找出正在运行的仿真器的IP地址。

Afterward adb works normally. You may also find out the IP address of a running emulator by starting "Genymotion Shell" and typing 'devices list'

我还发现有时我必须以上是当模拟器运行较长时间并以某种方式使ADB断开连接的情况。

I also find out that occasionally I have to do the above when the emulator is running for a longer time and somehow ADB disconnects from it.

Greg

这篇关于Genymotion Android模拟器-ADB访问权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆