I had the same problem and I have solved it by changing a parameter in the emulator’s config.ini file
To solve it, you go to the path in your machine where the emulator devices are located, example: C:\Users\XXXX\.android\avd\
Enter the directory of the emulator that you want to fix, open the config.ini file in a text editor and where it says:
hw.gpu.mode = auto
You replace it with:
hw.gpu.mode = guest
Save the changes and restart the emulator.