If you run Flutter app in Android emulator you will get Java.lang.OutOfMemoryError.
You will encounter above error. So solve this error you may increase the memory of the emulator from avd manager.
But the easiest way to delete some unnecessary apk those installed in your emulatory.
So go to settings -> Apps & notifications -> Your apk -> Uninstall