Android emulator does not work

Lloyd Sheen 1,481 Reputation points
2022-01-28T17:14:53.737+00:00

I am trying to use the Android emulator. I have been using my Phone connected by cord but this is not a great way to debug.

So I go to Device Manager (VS 2022) and create the default (Pixel 5). It then shows. All attempts to deploy to the emulator using VS fail. Why does it fail? No idea since it says it failed but I get no information about why.

I go to the documentation but that is for VS 2019 not 2022. And not for Win 11 so I have no idea what could be happening.

Any ideas?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,363 questions
{count} votes

Accepted answer
  1. Philippe Levesque 5,801 Reputation points
    2022-01-31T18:43:41.313+00:00

    Hi

    Do you have an Intel or AMD CPU ? as that line; Running non-accelerated point to me an AMD CPU, or the HAXM is not installed correctly. Running not accelerated will not work good.

    I have a dev machine on AMD, and some physical device to test on it as the emulator run too slow to actually debug on it.

    If your Windows build accept it, please enable HyperV, you can use that way to have accelerated mode at On.

    Some FAQ;

    Scenario HAXM WHPX Hypervisor.Framework
    You have an Intel Processor X X X
    You have an AMD Processor X
    You want to support Hyper-V X
    You want to support nested Virtualization Limited
    You want to use technologies like Docker (with WSL2) X X

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.