amd ryzen编译android,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:

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

回答1:

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

回答2:

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

回答3:

lFjEp.jpg

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

回答4:

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

来源:https://stackoverflow.com/questions/61047505/how-to-use-android-emulator-on-amd-ryzen-android-studio

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值