title: In android Studio, how to fix: "The emulator process Pixel_4_XL_API_30 was killed" error
body: <p>I am using Windows 10 x64 with the 20H2 update. I installed Android Studio for the first time recently. I am trying to have the emulator run, but I keep getting the following error in the GUI:</p>
  <blockquote>
  <p>&quot;The emulator process Pixel_4_XL_API_30 was killed.&quot;</p>
  </blockquote>
  <p>Did a lot of research, and tried several fixes but still unable to run the emulator.
  I was looking to get more detail on that error so I ran it in the command prompts and got the following result back:</p>
  <pre><code>C:\Users\fmaz008&gt;C:\Users\fmaz008\AppData\Local\Android\Sdk\emulator\emulator.exe -avd Pixel_4_XL_API_30
  Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
  emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
  emulator: ERROR: VkCommonOperations.cpp:541: Failed to create Vulkan instance.
  Failed to open /qemu.conf, err: 2
  HAX is working and emulator runs in fast virt mode.
  VCPU shutdown request
  deleteSnapshot: for default_boot
  </code></pre>
  <ul>
  <li><p>For the Vulkan error, I fixed it (...) by switching the graphics from <em>software</em> to <em>automatic</em></p>
  </li>
  <li><p>For the Quickboot warning I set my AVD to Cold boot</p>
  </li>
  <li><p>For the CPU warning I unchecked <em>Multicore CPU</em> in my AVD advanced config.</p>
  </li>
  <li><p>For the qemu.conf error, according to <a href="https://stackoverflow.com/questions/59505749/failed-to-open-qemu-conf-err-2">this</a>, I open a command prompt in admin mode and ran:</p>
  <p>echo # &gt; c:\qemu.conf</p>
  </li>
  </ul>
  <p>This got rid of the errors but the emulator still shuts down right after starting with the GUI giving the same error. The command prompt output is now the following:</p>
  <pre><code>C:\Users\fmaz008&gt;C:\Users\fmaz008\AppData\Local\Android\Sdk\emulator\emulator.exe -avd Pixel_4_XL_API_30 -no-snapshot -cores 1
  Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
  HAX is working and emulator runs in fast virt mode.
  VCPU shutdown request
  emulator: WARNING: Not saving state: RAM not mapped as shared
  </code></pre>
  <p>Any idea why the emulator keep shutting down and why the GUI says the process is getting killed?</p>
  <p>Additional details:</p>
  <ul>
  <li>My CPU is an old Intel(R) Core(TM) i5 760  @ 2.80GHz, and that beast of a computer has 4gb of ram.</li>
  <li>SDK Platforms installed: Android 11.0(R) API Level 30 Revision 3.</li>
  <li>Launching in a tool window is unchecked.</li>
  <li>I have well over 1tb of freespace on my harddrive</li>
  <li>I do not have any weird characters in my user folder on windows</li>
  <li>My AVD is set to Cold Boot, Graphics is Automatic, Multi-core CPU is unchecked.</li>
  <li>SDK Tools:
  <ul>
  <li>Android SDK Build Tools</li>
  <li>Android Emulator 30.2.6</li>
  <li>Android SDK Platform tools 30.0.5</li>
  <li>Intel x86 Emulator Accelerator (HAXM installer) 7.5.6</li>
  </ul>
  </li>
  </ul>