Emulator not opening in Visual Studio for Xamarin mobile app development - xamarin

I am trying to develop a mobile app using Xamarin and Visual Studio 2019 on a Windows 8.1 Pro operating system. I installed the .NET desktop development, ASP.NET and web development, and Mobile development with .NET workloads, and I am trying to run the Pixel 2 Pie 9.0 - API 28 emulator in Visual Studio.
When I try to launch the emulator through the Android Device Manager, I get the following error:
Device error: WARNING: unexpected '-prop' value ('monodroid.avdname=pixel_2_pie_9_0_-_api_28'), only 'qemu.' properties are supported WARNING: unexpected '-prop' value ('emu.uuid=a7af4d97-19e3-499d-9c26-334ea3d7cfe0'), only 'qemu.' properties are supported
enter image description here
When I try to launch the emulator through the green triangle at the top of the Visual Studio user interface, I get the following performance warning:
Performance Warning: Launching the Android Emulator pixel 2 pie 90-api_28 on Hyper-V needs Windows Spring Creators Update (Redstone 4) or newer installed. Please update your system and retry.
enter image description here
My laptops
OS : Windows 8.1 pro
64-bit Operating System
Processor: Intel(R) Core(TM) i3-5005U CPU # 2.00GHz
RAM : 4.00 GB
enter image description here
I went through Android Device Manager and edited the emulator I had installed. There I changed its name and processor to x86_64 instead of x86 and downloaded it. Then I restarted the computer and ran the emulator. But there also the same double error message as mentioned earlier, no difference. My data is limited so I didn't waste it on more guesswork. But I will gladly accept any of your recommendations
I want to solve the above problems under this operating system. I am currently unable to upgrade my operating system to Windows 10 or 11. I want to work in Visual Studio with minimal error messages. Having to use another emulator or old technology is not a problem there.
What could be causing these errors, and how can I resolve them? Any help or suggestions would be greatly appreciated. Thank you in advance.
Although not directly related to this, I will mention the following issues.
When I installed the emulator in Visual Studio Xamarin I got a prompt to install intel HAXM. But its automatic installation failebd and I downloaded and installed it manually from Intel website there. After that I got the two errors in the screenshot above.
When doing that I had installed both the latest version of Visual Studio 2022 and this 2019 version. (I was able to install both in Windows 8.1 Pro) Then I uninstalled the 2022 version.
Also, even though I installed it under the update I received for version 16.11.25 of Visual Studio, over a day later, It's not updated in the Visual Studio installer or the versioned install in the IDE.
And in my Visual Studio installer, above the Modify button, under Total Space Required , 13MB of non-removable space is noted. I have run the Modify button several times but it won't go away. (That may have something to do with the note "System cache, tools, and SDKs with fixed locations - 13 MB" on the Installation locations tab in the installer.)
When opening ASP.NET and wed development and Mobile development with .NET (out of support) workloads for the first time, the nuget.org package source was not included in the package sources by default. So the packages got errors. I then solved the problem by adding the nuget.org package to the source.

You can check this Hardware acceleration for emulator performance (Hyper-V & HAXM) for more information.
In this article, you can see the minimum criterion of the Hyper-V.
Your computer hardware must meet the following requirements:
A 64-bit Intel or AMD Ryzen CPU with Second Level Address Translation
(SLAT).
CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
Minimum of 4-GB memory.
Virtualization Technology (may have a different label depending on
motherboard manufacturer).
Hardware Enforced Data Execution Prevention.
Verify that the Windows Version is at least 1803
To verify that your computer hardware and software is compatible with Hyper-V, open a command prompt and type the following command: systeminfo.

I unticked Hyper-V through the control panel and restarted the computer, where the emulator opened without error messages. But it takes a long time

Related

Can Visual Studio 2017 be installed and used on Windows 10 on ARM (i.e. Asus NovaGo)?

I am struggling to find information on this. Of course certain features such as docker and hyper-v will not function, but will Visual Studio 2017 be able to be installed and run on a Windows 10 always-connected ARM device? Like, would typical desktop/web development scenarios with .NET/C++/Python work?
Cheers.
Yes, it is possible. I just got a Asus Nova Go and tried it. Compiling and running a basic .net Core app (with an Avalonia UI) worked just fine but there are some limitations and corner cases that hopefully will get fixed.
Visual Studio takes long to launch, and when lauched is not very performant.
I think the Lenovo Yoga C630 is snappier, because of the bigger 8GB RAM and the Snapdragon 850.
If you have any further questions let me know

Cannot start windows phone 10 emulator

I am not able to start any of the Mobile Emulators for Windows Phone 10 (version 10.0.10240).
When I start it from the VS 2015, it gets stuck at "OS is starting". In the Hyper-V Manager, I can see the status "Starting (10%)" for the whole time. After some time, the machine is automatically restarted and it gets stuck at "Starting (10%)" again. Then it timeouts again and the emulator shows an error: "The virtual machine cannot be started because the file rdvgm.exe that is required to start the RemoteFX Manager process does not exist". That is weird, because I do have the rdvgm.exe in the C:\Windows\System32.
I have seen that there are some questions with the same error, but they are resolved by fixing the network switch or by killing devenv.exe after it shows "OS is starting". I have tried both, but it did not help. The network switch issue is different (I have seen it on a different computer - in that case the emulator starts correctly, but VS is not able to connect to it). I am stuck at "Starting (10%)".
What can I try to get it working? Windows Phone 8 emulator is working without any issue.
Thanks
The problem was that Hyper-V detected a graphic card which is able to work with RemoteFX (integrated Intel GPU) but the dedicated one (AMD Radeon) was not supported. I was not able to convince Hyper-V to ignore the dedicated one. When I disabled the RemoteFX support for Hyper-V (unchecked it in the Intel GPU setting in the Hyper-V configuration), it started working.
I found this Microsoft technical support desk yesterday. Its an on line chat with their technical people. I don't know if it covers all MS products. I was asking them about Outlook. Could be worth a try. I found it a touch slow at times, but ...
https://www.awasa.microsoft.com/en-GB/consultation/index?id=914801398064643&skuId=0
Hyper-V has problems enabling RemoteFX with some dual gpu graphics cards. Disabling one of the graphics cards in device manager solved the problem for me:
Disable one of the integrated graphics cards in device manager. I disabled Intel (R) HD Graphics 4600 and left NVIDIA GeForce GT 740M enabled.
Reboot Windows.
Delete the existing mobile phone virtual machines in Hyper-V Manager.
Start Visual Studio and deploy your app again.
I'll be honest, with much distress, I performed a complete factory reset. Reinstalled only Visual Studio 2015 Community edition (only with the tools I needed and not any other emulators such as Android), and it worked after setting up Hyper V as instructed via documentation on dev.windows.com

Can I bypass hyper-v with an earlier version of visual studio

I installed visual studio express 2013 on my windows 8.1 computer. Everything was fine until I learned that I needed 8.1 pro to have hyper-v to use a phone emulator to run my program. (I think)
Rather than downloading a new operating system, would I be able to use an earlier version of visual studio? If so, which one...
I am very new to phone development and (considering I can't get past the installation stage) would appreciate the simplest explanation out there.
Thanks!
Sadly, no. Hyper-V is a requirement for WinPhone emulation, and it requires Pro, no matter what version of VisualStudio
Note: To use the Windows Phone 8 emulator your PC must have Windows 8
Pro or greater and a processor that supports Second Level Address
Translation (SLAT).
https://www.dreamspark.com/student/Windows-Phone-8-App-Development.aspx
http://msdn.microsoft.com/en-us/library/windows/apps/ff626524(v=vs.105).aspx
However,you can easily upgrade to Pro, see http://windows.microsoft.com/en-us/windows-8/feature-packs You just buy an upgrade key and enter it, you don't have to go through the whole install a new OS process

Update to Android SDK Tools 23.0.5 and avd doesn't start

I am running on Windows 8.1 x64, developing Android apps using ADT Bundle. Previously (before updating the Android SDK Tools) the AVD was working very correctly and after the update, it says the following error while starting the AVD
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
I tried to delete the avd, avd-folder from the windows user-specific folder and re-created the similar avd but no progress.
How can I run the avd again? (after the SDK update)
Create emulator in CPU/ABI in ARM, this error only exist for Intel processor.
If you want to create AVD CPU/ABI in Intel gor for this process,
Make sure you have instaled HAXM installer on your SDK Manager.
After you download it make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
If you get the error "VT not supported" during the installation disable Hyper-V on windows features. You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. You will also need "Virtualization Technology" to be enabled on your BIOS
I've run into the same problem here and in my research I was able to find a documentation on the android developer site that helped me out with this.
Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.
After the download completes, run [sdk]/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe
Follow the on-screen instructions to complete installation.
After installation completes, confirm that the virtualization driver is operating correctly by opening a command prompt window and running the following command:
sc query intelhaxm
You should see:
SERVICE_NAME: intelhaxm
...
STATE : 4 RUNNING
...
Refer to this documentation here: Using the Emulator - Configuring VM Acceleration on Windows
Hope it helps.
I am having the same problem. I did change my BIOS and all previously, when I was running Windows 7. Now I'm up on 8.1 and the VT-x is not supported. Thus, apparently it does not work on Windows 8. Intel link. Go down the page and it lists the Windows Operating Systems that it does support.
It also states that on the developer's page Android Developer's Using the Emulator; I have been researching other options, see this stackoverflow question, but when I check my BIOS it does not state "Intel Virtualization Technology" just "Virtualization Technology". I'm not sure at this point if my computer runs this or not. It should as it's an Intel i7.
Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.
After the download completes, execute /extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe.
Follow the on-screen instructions to complete installation.
After installation completes, confirm that the virtualization driver is operating correctly by opening a command prompt window and running the following command:
sc query intelhaxm
You should see a status message including the following information:
SERVICE_NAME: intelhaxm
...
STATE : 4 RUNNING
...
FIXED
If you are having issues with the HAXM and it's not working to do what everyone else is saying to do try this:
1.Make sure you've already tried the steps above
(Enable Virtualization in the BIOS, as well as Uninstall and Re-Install the HAXM option from the SDK Manager)
Exit out of Android Studio.
Download and Instal HAXM DIRECTLY from Intel.
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
Start Android Studio.
Voila!
On Android Studio 1.3 this worked for me:
Go to Tools -> Android -> SDK Manager
There under Appearance & Behavior -> System Setting -> Android SDK
From there click on the SDK Tools tab
You should see Intel x86 Emulator Accelerator in the list.
Mine was not installed. I clicked the check box to install it.

Windows Phone 7 emulator doesnt work properly and just flickers

Windows Phone 7 emulator doesn't work properly on my laptop.
It just flickers instead of starting my app. Clicking on any of the buttons has no effect. (None of the emulators work, tried 256MB, 512MB, and the ones installed by WP 7.8 SDK Update) WP 7.8 SDK Update didn't solve anything.
I'm using a Samsung NP300E5A-S06 notebook, and it has:
Core i5 3210M 2.5Ghz
Intel HD Graphics 4000 + GeForce GT 620M
6GB of RAM
Here is a video of what's happening on my machine.
I heard this can be caused by the Intel HD Graphics 4000. But we can't force WP Emulator to use the GeForce.
How can I make the WP7 emulator work properly?
If you have any idea or a working solution, please help me!
Thanks in advance!
First, download and install the latest GPU drivers for both GPUs. If it will help, you're lucky: I had something very similar on machine (dual GPU Intel + NVidia as well), and was unable to find a fix.
My advice - upgrade to Windows 8, install visual studio 2012, and WP8 SDK. Fortunately, with the recent version of the SDK you can still build for the previous WP 7.1 platform. And even if xde.exe still won't work on your laptop, you can test and debug the application you're building on new HyperV-based WP8 emulators.
sorry, I cant comment.
Did you try repairing the installation?
Also completely removing and then re-installing?
EDIT:
Also you can try running it on a virtual machine on your laptop (Maybe there is some problem in your Windows installation - after all its Windows ;) )
i think i have had series of problems with that emulator months ago, but now, all is just well. i have some questions for you.
1) Which version of Visual Studio are you using. i believe it should be visual studio 2010
2) have you installed visual studio 2010 service pack 1? if no, try to download it and install
3) which version of .net framework are you using? Visual Studio installs .net3.0 automatically but i guess you have to install the service pack 1 too. you can download it or get it from windows update. in the update settings, choose"check for updates but let me choose which to download and install" then check the two or three check boxes below. then click okay and check for updates. you will then install updates for visual studio 2010 and .net framework.
those should help.

Resources