4

I am developing Xamarin forms app. I am not able to deploy app in nexus 6p( phone is not listed in device list ). Tried below steps, still phone is not detected.

  • I have installed Google USB Driver using Android SDK manager. enter image description here
  • I have downloaded usb driver for nexus 6p and done 'Update driver software' option in device manager under 'Portable devices' section. Device gets displayed as 'Nexus 6p' within Portable devices section in device manager and also seen as local drive( next to C: drive ). enter image description hereenter image description here
  • Selected droid project as startup project.

But phone is not listed in visual studio device list. Any help?

pg90
  • 423
  • 2
  • 6
  • 16
  • your adb interface shows an exclamation mark.. also did you set the phone to usb debugging? – Suraj Rao Jan 03 '17 at 09:39
  • What _does_ the list show? And did you enable developer mode on your phone? For this go into your phone's about screen and tap the build number field a whole bunch of times until you get an alert. – Gerald Versluis Jan 03 '17 at 09:41
  • i enabled usb debugging in phone...phone is currently in developer mode – pg90 Jan 03 '17 at 09:48
  • current list of devices consists of emulators only – pg90 Jan 03 '17 at 09:49
  • @SurajRao where i can confirm this? "your adb interface shows an exclamation mark" – pg90 Jan 03 '17 at 09:50
  • your pic of device manager.. above the Nexus 6 – Suraj Rao Jan 03 '17 at 09:51
  • You may need to install the driver: https://developer.android.com/studio/run/win-usb.html – BytesGuy Jan 03 '17 at 09:57
  • Have you installed the appropriate SDK with the SDK manager (I think it is called)? – Owen Ransen Jan 03 '17 at 10:41
  • @SurajRao yes it shows exclamation mark...i think it is related to our problem...if it is so..then how can we avoid that exclamation mark? – pg90 Jan 03 '17 at 10:44
  • Do you have the adb where you have installed the SDK? – Suraj Rao Jan 03 '17 at 10:45
  • @OwenRansen i have installed android sdk tools 25.2.4 and Android sdk platform tools 25.0.3 – pg90 Jan 03 '17 at 10:47
  • run `adb list devices` – Suraj Rao Jan 03 '17 at 10:51
  • @SurajRao while running adb device command...no device is listed in result – pg90 Jan 03 '17 at 10:52
  • so adb installation is fine.. http://stackoverflow.com/questions/21170392/android-device-does-not-show-up-in-adb-list – Suraj Rao Jan 03 '17 at 10:52
  • @BytesGuy downloaded the driver and tried to 'Update driver software' in portable device section.. it shows a dilaog stating "windows has determined that the driver is up to date" – pg90 Jan 03 '17 at 10:55
  • @SurajRao tried http://stackoverflow.com/questions/21170392/android-device-does-not-show-up-in-adb-list Delete the device from Device Manager. Rescan for hardware changes. – pg90 Jan 03 '17 at 11:17
  • @pg90 I would ensure Developer Mode is enabled on the device. If it is then go into the Developer options and Revoke USB Debugging Authorizations. Disconnect the phone and reconnect and hope it asks for authorisation again. – Alan Clark Jan 03 '17 at 11:18
  • but rescan option does not shows mobile as "Unknown driver"...it results as mobile already having driver – pg90 Jan 03 '17 at 11:18
  • @AlanClark i diconnected the phone..then revoked USB Debugging Authorizations. Connected again, but it did not asked for authorization – pg90 Jan 03 '17 at 12:03
  • 1
    @pg90 [Reference](http://stackoverflow.com/questions/38224370/visual-studio-and-android-device-monitor-doesnt-detect-any-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.* – Nico Zhu Jan 04 '17 at 01:49
  • @pg90 I suspect that the driver you have installed is the standard manufacturer's driver and not one that enables debugging. I would suggest uninstalling the device from Device Manager and then installing the device again but using the Google USB Driver as you tried before. Uninstalling the device should ensure no existing driver is causing an issue with this. – Alan Clark Jan 04 '17 at 10:23
  • @AlanClark I tried it, but after uninstalling the driver the mobile name gets removed from Portable devices section. So i have to disconnect the usb cable and connect again. While reconnecting, the mobile under Portable devices is having driver again – pg90 Jan 04 '17 at 13:18
  • I solved a maybe similar problem using the Lenovo ADB driver for a Google Nexus 6: https://forums.xamarin.com/discussion/84871/is-the-adb-driver-installer-safe – Owen Ransen Jan 06 '17 at 08:01

4 Answers4

8

Make sure the 'USB DEBUGGING' option in DEVELOPER OPTIONS remains checked on your connected Android Device.

Make sure the 'USB DEBUGGING' option in DEVELOPER OPTIONS remains checked on your connected Android Device.

I've lost lots of time because this item would uncheck itself for some reason between reboots/restarts and Enabling/Disabling the DEVELOPER OPTIONS.

Alex
  • 228
  • 4
  • 8
5

If anyone else is still struggling with this in 2017, and your USB debugging is definitely on and it's still not appearing - I managed to fix this by turning developer options OFF then ON again from the device's settings. Also ensure that the USB option is set to:

Charging - Just charge this phone

I couldn't get any other method other than this to work. The device was then immediately detected by Visual Studio 2017 for me.

greenTree
  • 305
  • 7
  • 19
2

You ABD interface is not installed on your system, so first install the ABD driver from your local machine using (C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver).  And check your device is in developer mode. If all the setting will be good then your visual studio automatically detect your device and you can start to debug your app on your device.

Prabhat Maurya
  • 1,058
  • 16
  • 21
0

If you have installed VS2017 in parallel to VS2015, you also may have a look here Android devices not showed anymore in VS2015 after installing VS2017

FredyWenger
  • 2,236
  • 2
  • 32
  • 36