I upgraded the Android studio editor some time ago. A new feature is that the simulator can be started in the editing tool. But my editor doesn’t work. It keeps starting error (error while waiting for device: the emulator process for AVD pixel_2_api_30 was killed). Forced to start on the windows desktop, but I have a compulsion certificate. I want to solve a problem. I have been looking for posts on the Internet to solve this problem. The specific reason is not clear, but the problem has been solved.
1. Find the simulator location in Android studio
2. Modify config Ini configuration file, HW gpu. enabled = yes ; hw. gpu. Change mode = Auto to HW gpu. enabled = no ； hw. gpu. mode = off
After saving the configuration file, restart Android studio and start the project.
It took me a long time to fix it, including reinstalling Android studio and configuring various environment variables. If you can’t find the problem after reading the post, you can leave a message or private letter, and I will reply in time to help you solve it