Xamarin Android Player stuck on acquiring IP - xamarin

trying to launch XAP and it's just stuck loading, I checked the settings and it's stuck on 'Acquiring IP'. I've tried to repair it in Control panel& programs, same thing. It worked fine yesterday, I didn't change anything.
Using API 19, and Windows 7.
Any help is greatly appreciated.

Xamarin Android Player is discontinued, it is recommended to use Android simulators for Visual Studio or Google x86 emulators

Related

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

Xamarin Android Emulator with Maps

I want to run local test of an app using the Android Emulator within Visual Studio 17. It works great using the Visual Studio Emulator for Android and the app is almost complete.
However I need to add a map with a few pins and I have this working and tested on my PC using the UWP app. However trying to run on the Android emulator there is no Maps as there is no play store.
I have googled lots and found lots of things to try but none seem to work and I notice that the latest of all the pages and blogs I have read are dated 2015 so in software terms and indeed Xamarin they are very old.
So if I want to test the maps part of my app what is the best way if I can't get the Emulator to run with maps or am I missing some fancy new tool to test with other than shipping the app and hoping that it works in the wild?
Thanks
Cliff.
You cannot see the map as Visual studio emulators for Android do not have google play services installed by default. In order to test and see your map, you should install google play services in the android emulator.
You can do this by installing gapps on your emulator which provides you with google play services functionallity. The installation is just a drag and drop in the emulator. After installing this packge, you could use maps on the emulator.
I would create a new Android VM in that process you can tell it to add the google store to the android VM

xamarin studio android emulator starting take infinite time

I am using xamarin studio community edition on my macbook pro. when I try to run any sample project on android emulator it takes infinite time.
Can you please suggest. FYI It was working previosuly . Please check screen shot Android emulator error
I would highly suggest using the Xamarin Android Player instead of Google's default emulator manager.
The Xamarin Android Player is much faster and more reliable in my opinion although I have also heard that choosing different Google Play emulator images can make a big difference. Installing HAXM can also speed up the default Intel Google Play emulator images.
Download the Xamarin Android Player from here.
*Edit: Thanks to #SushiHangover for pointing out the fact that Xamarin deprecated the Xamarin Android Player. SushiHangover suggests using the Genymotion Android emulator which I have heard good things about but have not tried yet.

Basic Android App not working on Xamarin Android Player via VS2015

I have been trying to run basic Android App provided by Visual Studio 2015 via XAMARIN Android Player. Program gets build and deployed successfully, yet, App or anything does not appear on screen. Xamarin Player takes more than 20 mins to start and then nothing happens. Find Screenshots as well.
WIthin the Android SDK Manager look under Extras there is an package called Intel x86 Emulator Accelerator (HAXM Installer). Installing HAXM will increase the speed of the emulator when you use the Intel Atom CPU/ABI
Also when creating the emulator device check Use Host GPU for increaded performance.
I ran into few issues with Xamarin Android Player as well. Currently I am using Genymotion Emulator and it is much faster.
Well, Well, Well, I got my thing up and running. Following are the steps I performed:
After installing Xamarin for VS2015, I checked for latest Android SDK via SDK Manager. Got all the necessary updates installed.
Installed Xamarin Android Player and used emulator Nexus 5 KitKat API level 19.
Earlier I was using Nexus 5 Lollipop, was the reason why, it was not working. May be its not fixed for buil yet.
As, described by Mr.Pilatus in above answer, the particular HAXM things surely does help in accelerating emulator.
Got my Android app running.
Thank you all for all the necessary suggestion and guiding my in my baby steps in XAMARIN development. Gracias. NAMASTE!

Strange windows phone app crashes only from the store

I am trying to update a 7.1 app from the store. For some reason it crashes only when installed from the store and only on 7.1 or 7.8 devices. My Lumia 920 with the latest updates works fine. The app runs fine if installed from VS 2010 or VS 2012. Of course all emulators worked fine. I put a Messagebox at Application_UnhandledException and it displayed this:
The type 'MyApp.MainPage', specified in the x:Class of
'/MainPage.xaml' could not be found in any loaded assembly.
Of course the MainPage class is there.
The app uses GPS and bing map and has capabilities:
ID_CAP_LOCATION
ID_CAP_NETWORKING
Can anyone shed some light on this?
I have just solved a similar problem where I had this error message when running from Visual Studio on my phone but not in an emulator. My problem was that I had different versions of the Microsoft.Live Assemblies in my 'main' app and the Assembly which contained the 'MainPage.xaml'.
I had a weird issue where my app worked differently from the store than on my device and the emulator. In my case it was because of trial mode. Apps run as though they are purchased when deployed to the emulator or device. It worked on my device from the store too, but that's because I bought it. Any other device which had not bought it ran in trial mode, and that's why it worked differently. I am betting that is why you are experiencing this crash. If it is not then we'll need more information.

Resources