AndroidStudio starts the virtual machine and reports an error Android Emulator Hypervisor Driver for AMD Processors is not installed (nanny level tutorial)

I believe that many friends have encountered error reporting problems when starting the Android virtual machine. Android Studio prompts the following:

Intel HAXM is required to run this AVD. Android Emulator Hypervisor Driver for AMD Processors is not installed.  Install Android Emulator Hypervisor Driver for AMD Processors for better emulation performance. 

When clicking Next to install, an error is reported:

Android SDK is up to date.
Running Android Emulator Hypervisor Driver for AMD Processors installer
Requesting administrative privileges...
'CScript' is not recognized as an internal or external command, operable program
or batch file.
Done


Now I share my solution:

Check to see if virtualization is enabled on your computer

Press and hold the computer shortcut key Ctrl+Shift+Esc to open the task manager, and then click "Performance" to ensure that virtualization is enabled (if it shows that the state is disabled, you can read the tutorial on CSDN, it is relatively simple)

 

Make sure that virtualization is turned on and you can continue to operate~

first step:

WIN+Q brings up the Windows search box, enter cmd, right-click the command prompt, and select " Run as administrator ".
Enter bcdedit /set hypervisorlaunchtype off, if successful, it will prompt "operation successful"

Note: This step requires a restart to take effect.

Now confirm whether there is "cscript.exe" in your system32 folder Folder path: C:\Windows\System32  Search for cscript.exe in this folder, if not, download a cscript.exe from the Internet and throw it into this path .

second step

If there is still an error when there is cscript.exe in the above path, it is a problem with system variables. Open advanced system and settings: win+R key combination to open "Run", then enter sysdm.cpl and press Enter, click "Advanced" --- "Environment Variables"

 Click to select "Path" in the user variable (U), then click "Edit", click "New", enter  %SystemRoot%\system32  , and click OK.

third step

Now run cmd again as administrator, enter 

$ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver\silent_install.bat 

Note: $ANDROID_SDK_ROOT is your SDK installation path (take the default path as an example: C:\Users\your username\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\silent_install.bat), press Enter, and "
STATE : 4 RUNNING” is successful. (Congratulations, you can continue to "play the machine" happily again!)

One last addition: If you don’t know the installation path of your own SDK, you can click this icon in Android Studio to view:


Well, this sharing is over~ I hope it can help everyone!

thanks for watching! ! !

Guess you like

Origin blog.csdn.net/qq_63215465/article/details/129583606