Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
542 views
in Technique[技术] by (71.8m points)

hyper v - How to use Android Emulator on AMD Ryzen (Android Studio)?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

Then,

  1. Open a Windows command console with administrator privileges.
  2. Go to $ANDROID_SDK_ROOTextrasgoogleAndroid_Emulator_Hypervisor_Driver.
  3. Run silent_install.bat. Make sure you see the desired output from the installer: STATE: 4 RUNNINGresult

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...