Visual Studio和Android设备监视器未检测到任何设备 [英] Visual Studio and Android Device Monitor doesn't detect any devices

查看:458
本文介绍了Visual Studio和Android设备监视器未检测到任何设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Xamarin上安装了VS2015社区,以开发一些移动应用程序.问题是,我无法在任何设备上调试Android应用. Android设备监视器显示空白列表.我尝试连接不同的电话,我知道在我朋友的PC上可以检测到该电话.我可以从Windows资源管理器中浏览它们的文件,然后在计算机中看到它们.

I've just installed VS2015 Community with Xamarin to develop some mobile apps. The problem is, I can't achieve debugging Android apps on any device. Android Device Monitor shows empty list. I tried connecting different phones, which I know are detected on my friend's PC. I can explore their files from windows explorer, from there computer sees them.

  • 手机上的USB调试已打开.
  • USB连接模式设置为相机,完全不更改.
  • 我在Android SDK管理器中安装了Google USB驱动程序.
  • 我尝试了adb kill-serveradb start-server.没有改变. adb devices 显示空列表.
  • USB Debugging on the phone is turned on.
  • USB connection mode is set to camera, no change at all.
  • I have Google USB driver installed in Android SDK manager.
  • I tried adb kill-server, adb start-server. Nothing changed. adb devices shows empty list.

这是设备管理器,而手机上的开发人员"选项已禁用. 此处启用了开发人员选项 我还尝试过将驱动程序更新为google usb驱动程序,但Windows表示它是最新的.

This is device manager while Developers options are disabled on the phone. And here with enabled Developers options I also tried updateing driver to google usb driver, but windows said it's up to date.

推荐答案

您很可能没有授予对该设备的访问权限.尝试进入智能手机上的开发人员设置,并撤销USB调试授权.然后将手机连接到PC,然后等待您应该接受的手机弹出窗口.接受后,您应该会看到带有adb devices的设备.

You most likely did not grant access to the device. Try to go into the developer settings on the smartphone and revoke the USB debugging authorisation. Then connect the phone to the pc and and wait for a popup on the phone which you should accept. After accepting you should see your device with adb devices.

您也可以尝试将连接模式设置为MTP(而不是相机PTP).

You can also try to set the connection mode to MTP (instead of the camera PTP).

希望有帮助!

这篇关于Visual Studio和Android设备监视器未检测到任何设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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