Go to the android sdk directory and you can see the tools directory and the emulator directory. You can know that the emulator is in the android sdk/tools directory. Pay attention to the commands executed in the lower left corner when turning on the virtual machine:
The x86 virtual machine can be turned on, indicating that the virtual machine is okay, but the arm virtual machine cannot be used, which may be the problem of the emulator. Instead, use the x86 Android virtual machine but it will not go wrong. PANIC: Missing emulator engine program for 'arm' CPU. When using the android studio virtual machine, the arm virtual machine cannot be turned on, and an error is prompted: