Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio and Android Device Monitor doesn't detect any devices

I've just installed VS2015 Community with Xamarin to develop some mobile apps. The problem is, I can't achieve debugging Android apps on any device. Android Device Monitor shows empty list. I tried connecting different phones, which I know are detected on my friend's PC. I can explore their files from windows explorer, from there computer sees them.

  • USB Debugging on the phone is turned on.
  • USB connection mode is set to camera, no change at all.
  • I have Google USB driver installed in Android SDK manager.
  • I tried adb kill-server, adb start-server. Nothing changed. adb devices shows empty list.

This is device manager while Developers options are disabled on the phone. enter image description here And here with enabled Developers options enter image description here I also tried updateing driver to google usb driver, but windows said it's up to date.

like image 688
Rico Avatar asked Jul 06 '16 12:07

Rico


People also ask

Why is my device not showing in Android Studio?

If your device is not correctly detected in RAD Studio or in the system Device Manager, check the following: Ensure that your Android device is unlocked and not sleeping while connected via USB. Set the appropriate option in Settings or Developer Options. Make sure your Android device is enabled for USB debugging.

How do I use Android device monitor?

You just need to go to C:\Users\user\AppData\Local\Android\Sdk\tools\lib\monitor-x86_64 and double click the file monitor. click 'Ok', 'Ok' and 'Ok' and restart the cmd window if you had it opened and type 'monitor' and it should open the monitor as well.

How do I install Android Device Manager?

Android Device Manager can be found on the Google Play app. Just download and install it. However, you will have to go to your settings and allow the app to act as a Device Administrator, thus giving you the power to wipe or lock the device. You will need a Google account to download Android Device Manager.

How to show Android device in Visual Studio?

Following items are needed in order to show Android Device in Visual Studio. Make sure that you have enabled Developer Options/Mode. Here are the steps to enable Developer Options/Mode. Open up your Settings app. Tap on About Phone option. Find “Build Number”. Repeatedly tap on “Build Number”.

How do I monitor devices on Android Studio?

Start Android Device Monitor. To start the standalone Device Monitor application in Android Studio 3.1 and lower, enter the following on the command line in the android-sdk/tools/ directory: You can then link the tool to a connected device by selecting the device from the Devices pane.

What is Android device manager in Visual Studio Tools?

This guide introduced the Android Device Manager available in Visual Studio Tools for Xamarin and Visual Studio for Mac. It explained essential features such as starting and stopping the Android emulator, selecting an Android virtual device (AVD) to run, creating new virtual devices, and how to edit a virtual device.

How to fix Android Studio won’t detect my Device?

If Android Studio doesn’t even detect your device using ‘ADB devices’. then try to switch to PTP instead of MTP on your device. To do so, just click on “File transfer via USB touch for more options” in the notification area of the device. and then choose the PTP option. Then you will get a popup on your device regarding access.


4 Answers

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.

You can also try to set the connection mode to MTP (instead of the camera PTP).

Hope it helps!

like image 118
c0delama Avatar answered Oct 23 '22 05:10

c0delama


Enable the device for development

Goto: Device > Settings > Developer Options > tick USB debugging

like image 44
Habeeb Avatar answered Oct 23 '22 05:10

Habeeb


Sometimes just restarting Visual Studio might help

like image 35
ML13 Avatar answered Oct 23 '22 05:10

ML13


Try the this: 1 - Close Visual Studio 2 - connect your device 3 - Restart visual studio with the device already connected by usb (with the device options checked)

like image 43
Fred_mOZ Avatar answered Oct 23 '22 05:10

Fred_mOZ