I'm encountering a persistent "System UI isn't responding" error when running my Flutter app

Hello everyone,

I’m encountering a persistent “System UI isn’t responding” error when running my Flutter app in an Android emulator, and I’m hoping someone in the community can help me troubleshoot it.

The Problem:

Whenever I try to launch my Flutter app on the emulator, I frequently get the “System UI isn’t responding” dialog. It usually gives me the options to “Close app” or “Wait”. This makes it very difficult to test and develop my app.

What I’ve Tried:

  • Waiting for a while to see if it recovers.
  • Closing the app and relaunching it using flutter run.
  • Restarting the emulator multiple times.
  • Cleaning the flutter project using flutter clean and then flutter pub get and flutter run
  • I updated the ndk version in the build.gradle.kts file.