How to use Android Emulator on AMD Ryzen (Android

2020-07-23 04:32发布

I try to build Android app from Android Studio.

I tried to install HAXM from Android Studio installer but I've an error:

enter image description here

Intel Virtualization Technology is already enabled in my BIOS. And the Hyper-V is already disabled on Windows 10.

4条回答
来,给爷笑一个
2楼-- · 2020-07-23 04:38

enter image description here

With Android Studio Canary, I've lot of problem...

查看更多
Melony?
3楼-- · 2020-07-23 04:39

Use the Android Studio Cannary for this. I was with the even issue and it fix for me. Watch the video for help to configure it.

https://www.youtube.com/watch?v=57vZtl5l9hk

查看更多
疯言疯语
4楼-- · 2020-07-23 04:42

For Ryzen on Windows 10, use the latest stable instead of canary.

  1. Enable virtualization in BIOS.
  2. Remove HAXM.
  3. Turn off Hyper-V, Windows Hypervisor platform, Windows Sandbox(depends on your windows version, old versions may not have all). REBOOT

screenshot

  1. 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. driver

Then,

  1. Open a Windows command console with administrator privileges.
  2. Go to $ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
  3. Run silent_install.bat. Make sure you see the desired output from the installer: STATE: 4 RUNNINGresult
查看更多
乱世女痞
5楼-- · 2020-07-23 04:50

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.

1: enable SVM or other virtual machine setting in the BIOS 2: disable all hypervisor and virtual machine features by going to "Turn features on / off" in windows. 3: 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.

4:run : C:\users\username\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\silent_install.bat

查看更多
登录 后发表回答