Visual studio 2022 + M1 Android Emulator - xamarin

Hi has anyone managed to get Android Emulator working on an M1 Mac with Visual Studio? I'm struggling to get it running.
In Visual Studio, Android Device Manager is showing one device
Android 10.0 - API 29
arm64-v8a
1 GB memory
1080 x 1920 resolution
Base device is Pixel 2 (+ store)
When I select it and press run, I just get a message "The emulator exited unexpectedly, please check the emulator settings".
Not sure what settings need to be changed or corrected though.
Update
Running on:
Visual Studio 2022 for Mac Version 17.3.8 (build 5)
Xamarin Android 13.0.0.0

Related

Xamarin in Visual Studio 2017 - Installing the NDK and HAXM

I've set up Xamarin in VS through the Visual Studio Installer. I selected the Android NDK 13b and also selected the Intel HAXM.
Problem is:
1) The NDK does not show up under any selection.
2) Android device manager keeps stating that HAXM is not installed.
I've tried uninstalling and reinstalling them and even restarting my system, but it still isn't working. As a result, I keep getting errors when I try to run the Android Device Manager or launch the emulator.
If anyone has any suggestions, please let me know. I'm half a mind do to a total reinstall

Appium: Visual Studio Android Emulator:

Appium: Visual Studio Android Emulator: https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
I am looking to use appium for mobile testing using C#. I had a look into below articles and followed the mentioned steps.
https://blogs.msdn.microsoft.com/ganesh/2016/03/13/browser-appium-visualstudio/
When I reached the point to download visual studio emulator I received the below error.
Visual studio Emulator error screenshot:
So does it mean I can't install emulator in Win 7 PC? and can't use Appium with C# for mobile testing in win 7?
Kindly check System Requirements for the Visual Studio Emulator for Android.
It says that you must have win 8 or higher in order to install this + 6GB of Ram and should be of 64 bit OS.
Please upgrade your PC and install again. It should solve the issue.

Can't find Emulators when setting up Xamarin in VS community 2017

I'm trying to setup for Xamarin development, but can't find Visual Studio Emulator for Android and Windows 10 Mobile Emulator (Creators Update) under Individual Components ( those items in red in the screenshot below). All I can see the first 2 under the Emulators list Google Android Emulator(API Level 23) and Intel Hardware Accelerated Execution Manager (HAXM).
My computer specs:
8GB RAM
64-bit Windows 10 Home
Note*: the screenshot is from the instructions that I found online, not from my computer.
]1.
The Visual Studio Emulator for Android is using Hyper-V which requires Windows 10 Pro. But you can use the Google Android emulator which is using the mentioned Intel HAXM.
I tried to modify my VS enterprise 2017 15.2 (26430.13) and checked the Individual components – Emulators, the options are the same as yours, please check this following screenshot. The photo you shared is a previous VS 2017 version and looks different with the latest version, you should not follow it.
Since your OS is windows 10 Home version, you need to upgrade to the professional version, please refer to this: System Requirements for the Visual Studio Emulator for Android and it requires the 64-bit version of the Pro edition of Windows 8, Windows 8.1, Windows 10 or higher to use the VS Emulator for Android.

What emulator to run with Visual Studio 2015 - Community edition for Xamarin to work>

I have installed Visual studio 2015 Community edition and wanted to try Xamarin for Android/iOS development. Default installation for VS doesnt show me any installed emulator with visual studio.
I am new to mobile development and not sure which emulator to install. There are options like Visual studio Android Emulator for 2015. But it wont work on my Windows 10 home edition.
Please suggest.
As Toby suggested below. I used Xamarin Player. It is not straight forward process though. I did following steps if some one is interested.
1) Installed Xamarin Android Player.
2) Had Oracle VM Box manager installed previously as part of Android SDK(I think).
3) After installing Xamarin Android Player, It prompted for the device I wanted to use. I selected Nexus 5 KitKat. After downloading required files. I tried to run the device. Got another error!! Saying 'Xamarin Fail to initialize device'.
3) I opened Oracle VM and selected the device. Clicked on Settings > System > Base memory. Reduced base memory to 1024 MB. Saved the changes.
4) Opened Xamarin Studio and re-ran the device.
Success!!!
5) Came back to Visual Studio. It started to show me the device in Visual Studio. Ran the solution and Voila! App is indeed in visual studio.
That is correct. Visual Studio Emulator for Android works only with the Pro version or higher of the operating systems Windows 8, Windows 8.1 and Windows 10. Instead of the Visual Studio Emulator for Android, you can test your Android application with the Android Player from Xamarin. The Xamarin Android Player works official with all version of Windows 7, Windows 8 and Windows 8.1. I use the Xamarin Android Player with Windows 10 without issues. Alternative you can use the Android Emulator from the SDK.

Visual Studio Deploy to device Stucked Universal App

I'm trying to deploy a universal app to a windows phone (development ready Lumia 520) device (I could deploy with Visual Studio 2015 RC).
Now that I'm using the latest visual studio and windows 10 sdk tools if I try to deploy to device (I'm using ARM) then the output just says:
Deploying started...
And gets stuck forever (I can still use visual studio) but it never ends.
Any suggestions?
Thanks in advance
I needed to change my phone device to developer mode.

Resources