Visual Studio不允许我在android物理设备上进行调试 [英] Visual Studio doesn't let me debug on android physical device

查看:148
本文介绍了Visual Studio不允许我在android物理设备上进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin和Visual Studio 2013开发一个Android应用。我已将Android小程序连接到计算机。 Sansung Kies可以识别该设备。亚行也认识到这一点,因为当我键入 adb设备时,该设备出现在列表中。但是,当我调试应用程序时,Visual Studio不允许我选择设备,它只是建议我使用android虚拟模拟器。在我的设备中, USB调试选项已启用。那么我在做什么错了?

I'm developing an android app with Xamarin and Visual Studio 2013. I have connected my android applet to the computer. Sansung Kies recognizes the device. Adb recognizes it also because when I type "adb devices" the device appears in the list. But when I debug the app Visual Studio doesn't let me choose my device, it only proposes to me to use the android virtual emulator. In my device the "USB debug" option is enabled. So what am I doing wrong?

推荐答案

EDIT

刚买了一台新机器,并遇到了同样的问题。

Just got a new machine and ran into the same problem.

执行以下步骤:
http://visualgdb.com/KB/usbdebug-manual/
解决了该问题对我来说。

Following these steps: http://visualgdb.com/KB/usbdebug-manual/ as suggested by Veverke in the comment below fixed the issue for me.

只是遇到了相同的问题,并通过结合这两个链接对其进行了修复。显然,我们的问题与第一个链接中列出的问题不完全相同,这就是为什么我不得不同时使用这两个问题来综合解决方案。

just had the same issue and fixed it with a combination of these two links. Obviously our issue isn't the exact same issue that's listed in the first link but that's why I had to use both to kind of synthesize a solution.

> https://web.archive.org/web/20140410204811/http://krumelur.me/2014/01/30/xamarins-visual-studio-plugin-missing -android-devices-genymotion-and-parallels-desktop-dont-panic /

http://developer.android.com/tools/extras/oem-usb.html

基本上,在Visual Studio 2013中启动Android SDK Manager。一直向下滚动到其他文件夹,您将在其中找到 Google USB驱动程序。我的已经安装了,所以我删除了该软件包,确认要删除它,然后重新安装它。

Basically, in Visual Studio 2013 start the Android SDK Manager. Scroll all the way down to the 'Extras' folder, where you will find the 'Google USB Driver'. Mine was already installed, so I deleted the package, confirmed I wanted it deleted, then reinstalled it.

然后,我打开Windows资源管理器并右键单击计算机,然后点击管理(需要管理员权限)。在新打开的计算机管理窗口中,单击左侧层次结构中计算机管理>系统工具下的设备管理器。

Then, I opened Windows Explorer and right clicked 'Computer', then clicked 'Manage' (need Admin priviledges). In the newly opened Computer Management window I clicked 'Device Manager' under Computer Management > System Tools in the hierarchy on the left.

在主窗口中,展开其他设备,并看到了我正在寻找的设备。我右键单击它,然后选择更新驱动程序软件,然后选择浏览我的计算机以获取驱动程序软件。

In the main window, I expanded 'Other Devices' and saw the device I was looking for. I right-clicked it and chose 'Update Driver Software', then 'Browse my computer for driver software'.

现在,您需要单击浏览... 并找到软件包的安装位置..对我来说,它在
C:\Users\zumberge\AppData\Local\下Android\android-sdk\extras\google\usb_driver
单击下一步,您需要选择接受Google,Inc.作为可信来源。
然后该过程应该已经完成​​,您会很好。

Now you need to hit Browse... and find where you installed the packages.. for myself it was under C:\Users\zumberge\AppData\Local\Android\android-sdk\extras\google\usb_driver. Click next, the you need to choose to accept Google, Inc. as a trusted source. Then the process should be finished and you'll be good to go.

不知道您是否需要重新启动VS2013,但我确实做到了

Don't know if you need to restart VS2013, but I did for good measure.

希望这会有所帮助,并且还不算太晚。

Hope this helps and it's not too late.

这篇关于Visual Studio不允许我在android物理设备上进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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