在 Windows 7 上的 VirtualBox 中运行的 Ubuntu 中无法识别 Android 设备?
我在 Windows 7 上安装的 VirtualBox 中运行 Ubuntu。出于某种原因,当我在连接手机后输入 adb devices
时,没有任何反应。它只是给我一条消息,说没有找到设备。
该设备在 Windows 中被识别,但在 Ubuntu 下没有任何反应。我尝试使用 sudo 但这也不起作用。有没有办法让虚拟机中的 Ubuntu 识别设备?
I am running Ubuntu inside VirtualBox installed on Windows 7. For some reason, when I type adb devices
after connecting my phone, nothing happens. It just gives me a message saying that no devices were found.
The device is recognized in Windows but under Ubuntu, nothing happens. I tried using sudo but that doesn't work either. Is there anyway to get Ubuntu inside the VM to recognize the device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否已按照说明允许虚拟机访问主机 USB 设备?
然后,您需要按照下面 user591604 链接到的指南进行操作。
Have you followed the instructions for allowing your VM to access host USB devices?
You will then need to follow the guide that user591604 links to, below.
我不确定虚拟机,但我是在 ubuntu 之外为 android 开发的。我记得我不得不做一些奇怪的事情。此页面上有更多相关信息:
http://developer.android.com/guide/developing /device.html
我希望这有帮助。
I'm not sure about a VM, but I develop for android out of ubuntu. I remember having to do some wonky things. There's more about this on this page:
http://developer.android.com/guide/developing/device.html
I hope this helps.