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.
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. And here with enabled Developers options I also tried updateing driver to google usb driver, but windows said it's up to date.
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.
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.
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.
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”.
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.
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.
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.
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!
Enable the device for development
Goto: Device > Settings > Developer Options > tick USB debugging
Sometimes just restarting Visual Studio might help
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With