Visual Studio does not allow debugging a physical Android device

I am developing an Android application with Xamarin and Visual Studio 2013. I have connected my Android applet to a computer. Sansung Kies recognizes the device. Adb recognizes this also because when I type "adb devices", the device appears in the list. But when I debug the Visual Studio application, I can’t select my device, it offers me to use the Android virtual emulator. The option "USB debug" is enabled on my device. So what am I doing wrong?

+9
android debugging visual-studio-2013 adb
source share
8 answers

EDIT

Just got a new car 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 problem for me.


had the same problem and fixed it with a combination of these two links. Obviously, our problem is not the same problem that is indicated in the first link, but why I had to use both options to synthesize the solution.

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, launch the Android SDK Manager. Scroll all the way to the "Advanced" folder, where you will find the "USB driver for Google." Mine is already installed, so I uninstalled the package, confirmed that I want to remove it, and then reinstalled it.

Then I opened Windows Explorer and right-click “Computer”, then click “Management” (you must specify administrator rights). In the newly opened Computer Management window, I clicked Device Manager under Computer Management> Utilities 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 and selected “Update drivers,” then “Browse my computer for driver software.”

Now you need to click Browse... and find where you installed the packages .. for yourself it was C:\Users\zumberge\AppData\Local\Android\android-sdk\extras\google\usb_driver . Click "Next", you need to decide whether to accept Google, Inc. as a reliable source. Then the process should be completed and you will be well off.

I don’t know if VS2013 needs to be rebooted, but I did it for a good measure.

Hope this helps, and it's not too late.

+8
source share

For VS 2015, LG Nexus 4 and Windows 7, the following solution works for me.

Debugging Turning On and Off while starting up an instance of Visual Studio, your physical device will appear in the list of devices.

enter image description here

+3
source share

Restarting Visual Studio 2013 solved the problem for me.

More details:

  • Visual Studio was open when I tried to make the device visible to the system.
  • After installing the device driver, I restarted "adb" and saw that the device was added to the "adb devices" list.
  • However, the device name in Visual Studio has not been changed, some numbers.
  • After restarting Visual Studio, the real device name is displayed as "NVIDIA Shield Android TV .."

Then I did not get this error anymore.

+1
source share

After turning on debug mode on my Android device, I found that I need to change the "USB PC Connection" setting. He was set to "Charger." When I switched it to “Media Sync (MTP)” and reconnected to my computer, it appeared in the device manager, but the drivers did not seem to work with VS. I reinstalled "USB Driver for Google" in the SDK Manager. I deleted my device in the device manager and added it back using the Google USB driver. When I disconnected / reconnected the device to the computer, Windows asked what I would like to do with the device. I realized that the first time he asked me, I quickly clicked "Do nothing." This time, I noticed that the first option was to run exe on the device to install the driver. After the installation was completed, I disconnected / reconnected the device, and the device suggested that I debug my computer. After selecting “Allow”, the device appeared in VS while VS was already open.

+1
source share

Also make sure that the correct setting is selected for your device. (e.g. ARM for most smartphones)

If its set does not match the device, the device will not be displayed, even if adb can see it. Just switching the configuration solved the problem for me.

+1
source share

I followed most of the steps mentioned, but still couldn't get it to work. Some things I did:

  • download and install the google driver from sdk android manager.
  • find the device in the Windows device manager and update the driver (pointing to the Google usb driver)
  • establish usb connection with mtp on ptp
  • restarted visual studio
  • rebooted computer

Finally, what worked for me was searching for drivers for my specific Android device (lg g4) and landing on this site . As soon as I installed the drivers, I was immediately able to debug the visual studio using my device. It works whether the USB connection is with mtp or ptp.

http://www.andromods.com

0
source share

If you use Samsung and installed MyKnox, you cannot enable USB debugging until you uninstall MyKnox, as indicated in This link

0
source share

I just ran the adb command line and hit "adb devices" and it showed that the daemon was not working. He installed himself, and now I can see Android devices there.

 C:\...\...\source\repos\ABC\ABC\Ex.Android>adb devices List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfully ZF22Q3T unauthorized 
0
source share

All Articles