title: Emulator: System UI isn't responding, horrible app glitches
body: <p>I have multiple emulators provided by Android Studio. I have a Pixel 3 and a Pixel 4 both running Android api 30. Both work fine for a while, but eventually there is this popup:
  <a href="https://i.stack.imgur.com/J2G9S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J2G9S.png" alt="System UI isn't responding" /></a></p>
  <p>After this point, the emulator becomes unusable. Notice that the home and back buttons at the bottom of the screen are gone. The emulator glitches horribly, with animations slowing down and leaving residue on the screen.</p>
  <p><strong>What I have tried</strong></p>
  <p>Quitting the emulator application and turning it back on again. Same issue again.</p>
  <p>Pressing the emulator power button and restarting the emulator like I would a physical device. Same issue.</p>
  <p>Deleting the emulator and creating new one. This works for a while but eventually the error happens again.</p>
  <p>I followed the advice here: <a href="https://stackoverflow.com/questions/15678520/android-emulator-error-system-ui-has-stopped?noredirect=1&amp;lq=1">Android emulator error: &quot;System UI has stopped&quot;</a>
  The .ini file had no entry for <em>hw.mainKeys</em> so I tried adding it. No effect.</p>
  <p><strong>Stats</strong></p>
  <p>MacBook Pro (16-inch, 2019)</p>
  <p>processor: 2.6 GHz 6-Core Intel Core i7</p>
  <p>memory: 16 GB 2667 MHz DDR4</p>
  <p>graphics: AMD Radeon Pro 5300M 4 GB, Intel UHD Graphics 630 1536 MB</p>
  <p>Android studio 4.4.1</p>
  <p>At this point, it's becoming difficult to continue development, since I have to keep recreating my emulator and reinitializing the device data that I need for testing.</p>