How to run Android Studio Vitural Device emulator on AMD® Ryzen platform

I used Intel CPUs before, and to open the emulator, I had to install an Intel X86 HAXM in order to speed up. Otherwise, using a virtual machine would be very slow.

Recently changed to AMD Ryzen2 3700X, the simulator will report an error, the following is my solution steps

The premise of solving the problem is that you have installed Android Studio, can run and debug normally (real machine mode), this article only solves the problem that AMD can not run the emulator

  • Enable virtualization support in the BIOS, the machine is not turned on by default, I use the mortar motherboard, there is a SVM mode in the cpu configuration, enable him, other motherboards are similar, just look for setting cpu virtualization, Save and restart
  • Run powershell with administrator rights and run the command Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All to enable the operating system to enable virtualization
  • Install Android Emulator Hypervisor driver for amd processor in Android Studio SDK manager
  • Go to extras \ google \ Android_Emulator_Hypervisor_Driver in the android sdk directory, install it, execute silent_install.bat with administrator privileges, install the driver

After executing the above items, the virtual machine can proceed to the next step (previously there were errors). In other words, the running speed of Google ’s virtual machine is really much higher than before. The slower ones used to be the real machine without considering the simulator, but now the response speed is smoother than the real machine. The experience is very good.

My machine is configured with 3700X + 32G memory + 512G nvme SSD

Published 14 original articles · Like8 · Visit 70,000+

Guess you like

Origin blog.csdn.net/wm20000/article/details/105170054