Xamarin Live Player - xamarin

Unable to deploy to Asus ASUS_Z01BDB Player, please ensure the Xamarin Live Player app is open and the device is on the same network as Visual Studio.
Failed to debug your app.
The error with other project was just connecting and say connected and after 2 sec the qr-code on the computer changes and mobile displays connection lost. it is continued automatically like a infinite loop.
Visual Studio Community 15.6.1
Xamarin Live Player 1.5.176
Internet Connection is available with WiFi.
Computer and Phone is connected to same WiFi.

I solved the issue by :Goto Tools>Extensions and Updates> Updates. And Click to Update the Visual Studio Cumulative Update which will be on the list. Esure your network connection
Some others find a solution by Xamarin for visual Studio, XamarinApple SDK, Xamarin Android SDK, Mono Debugging for Visual Studio which is on the list.
So i would encourage you to keep the list empty.
Try with the build available in the fast ring? For information on how to join the fast ring for Xamarin Live Player, please see here:
https://developer.xamarin.com/guides/cross-platform/live/install/#Xamarin_Live_Player_Fast_Ring

Related

Microsoft visual studio doesn't show any android emulator or physical device for Xamarin project

I have a xamarin project and i want to debug it, but visual studio doesn't show any emulator or physical device.
this is the menu
I wanted to restart adb from tools > android but it's disabled. but when I open a non xamarin project (for example a web porject) this options is enabled.
I can see my device in cmd with command adb devices and in android studio, every thing is fine and I can deploy some java application to my phone.
do you have Any idea?
Update
I created new project and in this new project, every thing is fine and I can debug with my phone or emulators.
but in my existing project which I'm currently working on, there is no device in list.
It happened to me just now using vs 2019, to fix this, manually remove obj and bin folders restart vs, and that's all :)

How come my AVD Xamarin Live Player always shows "Paired with Visual Studio"?

Everything is fine when I am using a real Android device to run Xamarin Live Player.
However, when I start Xamarin Live Player in an AVD. It just start with paired status and I cannot do anything to scan the qrcode or enter the pair code.
Anyone can help?
Visual Studio automatically installs Live Player and pairs with the Android emulator. No pairing code is required and Visual Studio will auto-start/run the Live Player so you do not need to open it manually.
Start the Emulator
In Visual Studio:
Set your startup project to the Xamarin.Android application project
Select the running emulator from the available Virtual Devices
Open a XAML page and click the Live Run button

xamarin Live Player Lost connection

I am trying to connect to Xamarin Live player. My phone is samsung SM-J727V. My Visual studio version is Visual studio 2017 enterprise version is 15.6.4. Whenever I select the Pair Visual studio and scan the QR code from Visual studio screen. It establishes the connection and says connected to Visual studio and then after few minutes it says lost connection to visual studio.I tried pairing again and again and every time the connection is lost.
I looked through online articles, but could not find the solution. I do have some images in my Visual studio application. These images reside in Resources\draw able location I have latest Xamarin version and latest Visual studio enterprise edition. I am not sure what am I missing. I really want to use Live player because it will help me to see my changes instantaneously rather than waiting for the emulator to load.
Any help will be greatly appreciated.
I had all kind of problems getting Xamarin Live Player to work. Finally I was able to have Visual Studio to connect to my mobile phone when starting/debugging the application. This is what I did:
Download the Xamarin Live Player app from the App store and install in on on my mobile phone
In Visual Studio, go to Tools > Xamarin Live Players > Manage Devices... and add my phone to Xamarin Live Players managed devices by scanning the QR code with the Xamarin Live Player app.
It did connect, but only for a few seconds.
Start Developers Mode in Windows
In Windows 10: Start Settings app to access it. Go to Settings > Update & Security > For Developers and select “Developer mode”.
Start Developers Mode on my mobile.
On my phone (Android 5.1.1): Go to Settings > Build Number and tab 7 times on it.
Connect the phone with the PC using an USB cable
The Xamarin Live Player did not stayed connected. As soon as I started to debug the app, the Xamarin Live Player did connect and the app was visible on my phone.
Maybe it helps somebody else.
xamarin live player still not stable and there are issues that everyone complain. until it release high stable update best thing to do is deploy over usb connection
https://stackoverflow.com/a/48743726/9326622
I resolved by pressing following key combinations shift + Alt + F5 and its works

iOS app flashing and closing on remote debug from Visual Studio

I'm a beginner in iOS development in Visual Studio 2013 through Xamarin.
I made a test app and tried to debug it on the MacBook Pro through LAN remote debugging.
As soon as I debug, the app starts shows launch screen and after 1 second it close, this happens several times and then the app stops.
I'm using xamarin 6.1.4.1 on both machines.
It shows the error : An error occurred while executing the mtouch.
What should I do now??
After going through every things, I re-installed Xamarin Studio by using Xamarin Installer rather than installing individual components. Seems like Xamarin Installer makes some more changes in system other than installing components.

Getting Visual Studio Android Emulator for Lollipop & marshmallow

I've installed Visual studio 2015 & xamarin and I see that the visual studio emulator only has kitkat and nothing else.
Their website claims that lollipop is supported but I don't have the foggiest idea on how to get it.
EDIT: Should probably mention this, when I open up the visual studio emulator window I see the following error:
Unable to establish a connection to Internet. Only device profiles for acquired platforms are shown
In Visual Studio 2015, you can install, uninstall, and start device profiles using the Emulator Manager. Access the Emulator Manager by choosing Tools, then Visual Studio Emulator for Android.
By default, there are four pre-installed device profiles (KitKat and Lollipop phone/5" and tablet/7" configurations), as indicated by the white text and icons. Other profiles in the list will appear grayed out until you choose the Install Profile button and the installation completes. You can filter the list by API Level and click the details arrow on the bottom right-hand side of a profile to view its full configuration details.
Once you've installed the set of profiles that you'd like to target, you can start these new profiles directly from the manager by pressing the green Play button. They will also appear in the debug target dropdown menu in any Visual Studio cross-platform mobile project type.
Ref: MSDN
I fixed it, A spybot tool I installed to disabled some windows 10 stuff was blocking things needed for this tool, unblocked it and it works now.

Resources