I created a small ActivityFile.java. After running it, it takes a while to show the Android Emulator on screen. After 10 minutes, I got this error.
Emulator:
I got the same problem and i solved it by recreating the AVD from scratch
delete the Folders according to your AVD name ex-: Nexus_5X_API_27
create a new AVD from the Android Studio