How to use Android Emulator on AMD Ryzen (Android Studio)?
Late to the party but if there are more like me who never got this to work, this got it to work: https://www.py4u.net/discuss/646511
If you tried everything (turning windows features off, enabling svm in bios..etc) and still didn't work, type bcdedit in the command prompt, and press ENTER. If you see an entry for hypervisorlaunchtype set to Auto, Hyper-V is still enabled. You can try setting the launch type to Off by running the command below.
bcdedit /set hypervisorlaunchtype off
I just purchased a Ryzen 5 laptop with Vega 8 video and was having alot of problems running the Android Studio emulator; in the end the problem was resolved and it was very simple.
Enable SVM or other virtual machine setting in the BIOS.
Disable all hypervisor and virtual machine features by going to "Turn features on / off" in windows.
Ensure you checkmark the AMD driver and uncheck HAXM in "SDK Tools" is SDK Manager.
And most important:
It is said that the latest update of Android Studio automatically installs the AMD driver once selected, however I found this not to be the case so the last step you need to do manually just to make sure.
Run:
C:\users\username\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\silent_install.bat
For Ryzen on Windows 10, use the latest stable instead of canary.
- Enable virtualization in BIOS.
- Remove HAXM.
- Turn off Hyper-V, Windows Hypervisor platform, Windows Sandbox(depends on your windows version, old versions may not have all). REBOOT
- Launch SDK Manager via Android Studio and you should see "Android Emulator Hypervisor Driver for AMD Processors". Check and click "Apply". The SDK Manager will download the installer package and unpack it to
$ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
Then,
- Open a Windows command console with administrator privileges.
- Go to $ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
- Run silent_install.bat. Make sure you see the desired output from the installer:
STATE: 4 RUNNING