If you install the AVD with Google Play Store, you cannot modify the GPU from Automatic or Hardware to any other value. It appears greyed in the AVD settings.
Some of us do not have graphics cards on our systems and therefore, this setting has to be changed in order to enable Android Studio AVDs to boot properly. Else, we can the Vulkan graphics error in the event log.
To remove the GPU, do the following action after opening a terminal window in Linux, where Device10.avd is the Android 10 AVD created:
vi ~/.android/avd/Device10.avd/config.ini <enter>
Change the values in red for the below parameters in the file to those in blue as below.
Save the file and restart Android Studio. The AVD will not hang if there is no graphics card in the system.