Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio doesn't let me debug on android physical device

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?

like image 355
nix86 Avatar asked Sep 17 '14 10:09

nix86


1 Answers

EDIT

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

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

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.

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'.

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.

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

Hope this helps and it's not too late.

like image 196
chriszumberge Avatar answered Oct 07 '22 09:10

chriszumberge