问题
AMD电脑在安装Android Studio时遇到问题:
Android Emulator Hypervisor Driver for AMD Processors installation failed.
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 2 image](https://kerrynotes.com/wp-content/uploads/2023/03/image.png)
我的电脑:
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 3 my computer](https://kerrynotes.com/wp-content/uploads/2023/03/my-computer.webp)
解决方案
开启CPU虚拟化
一般情况下,电脑应该默认开启了虚拟化。是否开启,可以通过任务管理器确定。
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 4 cpu](https://kerrynotes.com/wp-content/uploads/2023/03/cpu.webp)
如何开启虚拟化(可选)
如果没有开启虚拟化,那么你要进入到BIOS里,找到Intel Virtualization Technology选项。这里每台电脑不太一样,你需要找到(System)Configuration、Security或者是Advanced选项,然后将Intel Virtualization Technology改成Enabled。
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 5 inter virtualization tech](https://kerrynotes.com/wp-content/uploads/2023/03/inter-virtualization-tech.webp)
禁用Hyper-V
以管理员身份运行命令提示符,执行命令:
bcdedit /set hypervisorlaunchtype off
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 6 cmd](https://kerrynotes.com/wp-content/uploads/2023/03/cmd.webp)
或者右键点击此电脑,选择管理。进入计算机管理界面,点击服务和应用程序。在服务列表中,找到Hyper-V虚拟机管理,双击,启动类型改为手动。点确定。
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 7 hyper V](https://kerrynotes.com/wp-content/uploads/2023/03/hyper-V.webp)
使用管理员命令行在驱动程序包中执行“silent_install.bat”
以管理员身份打开命令提示符,cd进入进入到:Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver 文件路径下。【该路径为Android SDK的默认安装路径,一般在C盘下,可以自行搜索】
如果没有,需前往Github下载最新版本。
运行:
silent_install.bat
或者直接进入到此路径下,右键点击并管理员运行。
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 8 hypervisor driver](https://kerrynotes.com/wp-content/uploads/2023/03/hypervisor-driver.webp)
如果执行结果返回是:STATE: 4 RUNNING,说明安装成功,任务完成!如下图所示:
![Android Emulator Hypervisor Driver for AMD Processors installation failed - 9 cmd2](https://kerrynotes.com/wp-content/uploads/2023/03/cmd2.webp)