I have Visual Studio 2015 Community Edition with Xamarin inside Windows 7 Virtual Machine. I have my android device connected to the physical machine and Yes the android phone is recognized in the Virtual Machine, since it's shown in the My Computer of Virtual Machine, and also displayed in Other devices under Device Manager.
When I created Cross-Platform Blank App (Native Portable) project in VS2015 and Set App.Droid as startup Project, I can't see my phone. What am I missing?
Check unsupported devices under list of devices to run (or it is just Start button if you don't have any devices). If your phone is there that means your project has higher API level as Minimum target than the phone's API.
If phone is not even in that list then
Check on the phone if Developer mode is enabled and inside you have
USB debugging enabled
Stay awake
(Optionally) Allow mock locations
Related
I am using Visual Studio 2022 to create a Xamarin.Forms application based on Android. Now I have the problem that my connected Android device is not recognized in Visual Studio. Running "adb devices" shows the connected device. When running Android Studio I can also see the device listed - only in Visual Studio it is not shown in the list. In addition, also the Windows Device manager shows the the device in the portable devices category.
I have enabled USB Debugging on the device
I tried different cables
Reset the USB authorization for the connected PC
Any idea what's wrong here?
Search for Visual Studio Installer from your Start menu.
Select more->repair. Use this operation to try to repair.
You can also try other Android devices to check, if it still doesn't work, please check your Android SDK.
I've just installed VS 2017 with Xamarin Forms and have created my first MVVM app which works fine through the android emulator. But now I'd like to deploy this app to my own device (Samsung S7 - Android version 7).
For some unknown reason my VS cannot find my device - it's plugged directly into one of the laptops USB ports, developer mode is switched on as well as the USB debugging setting. I've installed drivers as well.
Hopefully you can see that image which shows a list of vs emulators for android on VS. All of which are API23 (Android v 6) - could this have something to do with the fact that my v7 device is not showing? I have API26 installed now which is for v7 of Android - still not showing..
Any ideas??
Try this:
change USB Connection mode MTP<->PTP
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.
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 ).
Selected droid project as startup project.
But phone is not listed in visual studio device list. Any help?
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.
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.
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.
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
I have installed Visual Studio 2015 Preview and started new Project - Naive Activity Application (Android). I would like to run the application against physical device, but there is only emulator in the target. I can see from some screenshot that it is possible, but I cannot find the right way.
How to set the physical Android Device as the target?
For me this worked :
After making sure the required drivers are all installed, just connect your phone via usb
Wait until you see your phone's name instead of the emulator.
Connect!
I want to debug Android app on Samsung gts5360 device via Windows 7. USB debugging on Android side is enabled, but device is not showing in Eclipse when connected. I had no such problems in Ubuntu.
So please suggest me how to debug apps on Android device via Window 7?
Try resetting the adb. I usually run Dalvik Debug Monitor in the background when using connected devices, so I can verify that the AVD and/or devices really are registered. You'll find this tool in C:\Program Files (x86)\android-sdk\tools or wherever you have your Android SDK installed. It's called ddms.exe.
If you don't see your device there, go to the menu Actions --> Reset asb. Now, all AVDs and devices should popup, and it will be available in Eclipse. At least, this works for me.