尝试通过USB在Android Studio中运行应用程序时,Azure虚拟机中的本地USB(小米5)出现问题 [英] Problem with local USB (xiaomi mi 5) in Azure Virtual Machines while trying to run the app in Android Studio via usb

查看:215
本文介绍了尝试通过USB在Android Studio中运行应用程序时,Azure虚拟机中的本地USB(小米5)出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Microsoft Azure虚拟机通过Android Studio创建应用程序.在开发过程中运行应用程序的一种方法是通过USB运行.在本地,一切正常,但是在虚拟机上,没有通过USB的Xiaomi 5. 在本地连接电话时,将显示通知,我可以在本地设备和资源"中的远程桌面连接"中检查字段Mi 5.但这不会影响Android Studio看到手机通过USB模式调试".

I want to use Microsoft Azure Virtual Machine to create apps via Android Studio. One of the option to run an app while developing is Run via USB. Locally all works fine, but on Virtual Machine there is no Xiaomi 5 via USB. While connecting the phone locally the notification shows up and I can check the field Mi 5 in the Remote Desktop Connection in "Local Devices and Resources" but this has no effect on Android Studio to see the phone to "debug via USB mode".

寻求帮助.

  ;



推荐答案

您已经提到:在本地一切正常,但是在虚拟机上没有通过USB的Xiaomi5."只是为了澄清这一点,您是否可以查看 可以将移动设备作为本地计算机上的USB使用,但是在Azure VM上不能显示相同的内容?隐藏任何私人详细信息后,请分享该问题的屏幕截图.

You have mentioned, ‘Locally all works fine, but on Virtual Machine there is no Xiaomi 5 via USB." Just to clarify on this, are you able to view the mobile device as a USB on your local machine fine, but does not display the same on the Azure VM? Do share a screenshot of the issue after concealing any private details.

这似乎是Android Studio配置问题,您可能想隔离这个.参考: 如何使本地USB端口与Azure虚拟机一起使用

This appears to be an Android Studio configuration issue, you may want to isolate this. Refer: How to make local USB port to work with Azure virtual machine and Android development is in VM but need to deploy & debug in local device


这篇关于尝试通过USB在Android Studio中运行应用程序时,Azure虚拟机中的本地USB(小米5)出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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