I run any flutter project on Android Studio and it throws an Out Of Memory Error. The message shown in the console looks something like this:
e:\b\build\slave\windows_engine\build\src\third_party\dart\runtime\vm\scavenger.cc: 411: error: Out of memory.
Dumping native stack trace for thread 2750
[0x00007ff676324b63] Dart_IsPrecompiledRuntime
[0x00007ff676324b63] Dart_IsPrecompiledRuntime
-- End of DumpStackTrace
flutter clean, clear Android studio caches. And restart the computer (of course :D).