Visual Studio Xamarin Physical Device Nexus 5X debugging - c#

I'm trying to debug with my device 5x a xamarin.forms application, but the device
isn't listed in Visual Studio.
The Nexus 5 is listed if i use the command "adb devices"
The Nexus 5 is also listed correctly in the device manager (no errors)
The device is also listed in the android device monitor.
I can successful build and deploy an android application in android studio on the device.
But why I cant deploy btw its not shown in Visual Studio.
Thanks for the Help
Lastone

Related

Android emulator not responding problem on the AMD process for Xamarin

When I update my windows to windows 11, I notice about when I run the android emulator for my Xamarin project, it freeze and said not responding.
I try these items below but won’t fix my problem :
reduce ram size of emulator device
reduce the resolution of emulator device
reinstall Android SDK
reinstall visual studio
My Virtual Machine Platform and Hyper-V are enabled in my windows features.
My emulator detail is :
OS: Android 12
Ram: 4GB
Resolution : 1080x2340 pixels
Google Services: true
For the AMD process, we need to make clear to the visual studio that we use the AMD process and it should change the emulator behavior to our process.
First of all like I said we need to make sure the Virtual Machine Platform and Hyper-V are enabled because it’s necessary to run an android emulator in a visual studio.
Second, We need to make sure that Android Emulator Hypervisor Driver for AMD Processors is selected in the visual studio.
Android Emulator Hypervisor Driver for the AMD Processors:
Visual Studio > Tools > Android > Android SDK Manager > Tools > Extras > Android Emulator Hypervisor Driver for AMD Processors
Third, Restart your visual studio and you’re good to go and enjoy your android emulator on the AMD Processors.

Android emulator starts but app doesn't show up

I'm new to Xamarin, I created a blank app just to try it out
I have Windows Home so I can only have Android Studio's emulator. The emulator works fine when I either launch it from avd manager or visual studio, but from the latter my project just won't load.
From xamarin broker logs I get this error :
System.Net.Mqtt.Sdk.ServerPacketListener: Error: 0: Server - An error occurred while listening and dispatching packets
System.Net.Mqtt.MqttException: The keep alive tolerance of 00:00:45 seconds has been exceeded and no packet has been received from client
[[ From the avd manager when I launch the emulator I get this error "Telnet connection failed", idk what this means bc I can still access the internet through the emulator ]] EDIT : I activated telnet so i dont get this anymore, still not working tho
I tried to reinstall everything (sdk + vs)
I found several solutions which involve launching the emulator from the avd manager then deploy the solution from vs, but that seems to be possible only with visual studio emulator
I tried this App not run in visual studio emulator for android in visual studio 2015 but it uses a visual studio emulator which i can't have (it needs windows pro or enterprise for hyperV)
Thanks for your help

How do I start a UWP Emulator?

I have created a cross platform app (Xamarin), which is targeted by UWP. It just uses the default template and that is it. I am now trying to debug it using an emulator, however the only debugging option I have is: "Device", which means I have to plugin a Windows phone.
I have also gone here and installed an emulator ( Windows 10 Fall Creators Update (version 1709 - this is what my app targets): https://developer.microsoft.com/en-us/windows/downloads/sdk-archive. After installing; I ran: C:\Users\MyUserAccount\Downloads\Windows Kits\10\Emulator\EmulatorSetup.exe and I see the message: The features installed on this computer are now up to date.
However, I still see no Emulator to start in the debugging menu.
Basically I am trying to do the UWP equivalent of Androids: Tools/Android/Android Device Menu/Start (start is an option for each emulator).
How do I start a UWP Emulator? The Tools menu in Visual Studio 2017 has an Android Device Manager and a IOS Device Manager, but no UWP Device Manager.
How do I start a UWP Emulator?
After installed emulator(10.0.15254.1), you need modify the app's min version to 15063. this lowest support version.
And your system need to support Hardware-assisted virtualization and
Enable Hyper-v for emulator
Then switch the Solution Platforms to X86 or x64.
For more info please refer Test with the Microsoft Emulator for Windows 10 Mobile

Attach Visual Studio 2012 to a Unity game running in Android mobile, for Debugging

Is there a possibility to attach Visual Studio 2012 to a Unity game running on my Android device, so that I can debug the application.
You can try what SwiftingDuster has suggested.
Additionally , you need to connect your Android Device and keep Unity closed, MonoDevelop Running. So that when you click on Attach to Process (in Mono Develop) it should prompt with connected Android Device only.
Make

Visual Studio 2015 doesn't debug and deploy on windows physical device

I'm developing an Xamarin forms(portable) app in Visual Studio 2015.In emulator application runs and results perfectly..
My system config is much more then the required. I have connected my Windows phone to the computer and also it recognizes the device.
But when I debug the app in Visual Studio with device, its just processing for longer and doesn't results anything rather shows
Microsoft VS is busy
and just visual studio hangs
**
Currently i upgrade Windows SDK 10.0.26624 after that i faced this
issue
**

Categories

Resources