Mike Eason Mike Eason - 5 months ago 161
Android Question

Deploying to Android device not found in Visual Studio

I'm trying to deploy an Apache Cordova app to an android device that's plugged into the machine. However when attempting to deploy, I receive the following error:


Unable to deploy to Android device, no attached device was found. If you recently attached a device, you may need to wait a few seconds before it is recognized.


As far as I'm aware, I've enabled all of the developer settings I need in order to deploy to the device. I've tried unplugging and plugging it back in, waiting a few seconds but to no avail.

I've tried changing the connection modes (HTC Sync, Disk Drive ect) however that hasn't made a difference.

The android device I'm trying to deploy to is pretty old (v3.35.61.3), so I've even tried to deploying to a different android device running the latest version of android however the same issue occurs.

This leads me to believe that it's an issue with Visual Studio not picking up any connected android devices. Perhaps I'm missing an install package?

Answer

After smashing my head against a wall for a couple of hours, I managed to get this fixed.

I followed these instructions to install the SDKs for the target device.

There was still an issue where the abd devices command was still not showing up with any devices, I installed the Universal ABD driver which I found in this question and that worked for me.


EDIT

Some of you have found that the following can also fix the issue:

  1. Turn on the Developer Options on the device.
  2. Enable USB Debugging.

It might be worth trying this first, and if that doesn't work, try what I did.

Comments