visual-studio.net-coremaui

MAUI app deployment to Android emulator no longer succeeds


I'm trying to run my app on the Android emulator, which has worked fine for months. Now it sits there on the Settings screen (and does not respond to mouse input). VS is stuck at "Waiting for emulator to be ready..." in the output window.

How can I fix this issue and continue to the Android emulation?


Solution

  • First of all open a Windows cmd and run optionalfeatures.exe. Double check if Hyper-V and Windows Hypervisor platform are checked.

    If those Windows features are enabled, you can go on Visual Studio Tools > Android > Android Device Manager right click on the problematic Android emulator and press Factory reset. This will clear all the possible broken configurations of the emulator (beware as also will clear all data).

    With the step above your problem should be solved. In case it persist, you can also completely remove the emulator and create it back again.