Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: Xamarin - Error starting Android Emulator

Problem encountered on https://dotnet.microsoft.com/learn/xamarin/hello-world-tutorial/devicesetup

Operating System: Windows 10 Pro

Using the Hello World xamarin example in Visual Studio - I'm unable to start the Android Emulator.

When I click on the Run button in the Android Device Manager - the error appears immediately (See attached)

Error-AndroidDeviceManager (Emulator including Google Play/Google API) enter image description here

Emulator 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=4b63b139-cc77-4b66-9200-0d25f8fc545e'), only 'qemu.' properties are supported

Same Error when Emulator is not using Google Play/Google API

enter image description here

Same Error when Emulator is not using Google Play/Google API

enter image description here

Windows Specifications Edition: Windows 10 Pro Version: 1909

Processor AMD Ryzen 9

Task Manager: Performance: Virtualization is Enabled

cmd - systeminfo: Hyper-V Requirements: VM Monitor Mode Extensions: Yes Virtualization Enabled In Firmware: Yes Second Level Address Translation: Yes Data Execution Prevention Available: Yes

Visual Studio 2019 enter image description here

Windows Features On/Off (see attached - shows Hyper V / Virtualization enabled as per documentation): WindowsFeatures enter image description here

I tried this way too - adding the Virtual Machine Platform - same error enter image description here

Android SDK Settings

Android SDK - Platform

Android SDK - Tools - part 1

Android SDK - Tools - part 2

Android SDK - Tools - part 3

Android SDK Version: enter image description here

Could the issue be related to the Android SDK Tools - only showing Android SDK Command-line Tools versions 1.0 to 2.1? Could the issue be related to Android Repository perhaps missing on the bottom right hand side? enter image description here

I've now also included the Android SDK Repository under the tools - but this is still not coming through: enter image description here

like image 748
amrit Avatar asked Sep 21 '20 20:09

amrit


2 Answers

I had also the same problem, but I have already fixed as next process.

  1. disable both [Hyper-V] and [Windows Hypervisor Platform].
  2. restart PC.
  3. enable both [Hyper-V] and [Windows Hypervisor Platform].
  4. restart PC.
like image 180
suzukimi Avatar answered Sep 19 '22 06:09

suzukimi


I had exactly the same problem, so I went to my UEFI settings and I realized that my SVM Mode was disabled. I don't know what motherboard you have but for Gigabyte this usually is in:

M.I.T → Advanced CPU Core Settings → SVM Mode

like image 43
alaneo Avatar answered Sep 18 '22 06:09

alaneo