So my android virtual device is not working and I have to install HAXM for it to work again properly. I found some solutions and I followed it. I unchecked the Hyper-v and enabled the virtualization in my BIOS but the installation failed. I am currently using AMD Ryzen 5 3400g. All the requirements was met except the VMX supported
VMX supported - No
VMX enabled - Yes
Here is the screenshot of the installation.
As suggested by this answer (thanks for
nevilad
in the comments for the link).Additional information (source):