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
4 GB RAM minimum, 8 GB RAM recommended. 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image) 1280 x 800 minimum screen resolution.
Flutter itself does not need a lot of space, but Android Studio and Xcode do. You should have at least 10 GB of free space.
Both android studio and flutter are different from each other as Flutter uses Dart as its programming language and android uses Java or Kotlin as it's a programming language. The Android Studio is part of the “Integrated Development Environment” (IDE) technology stack.
A few things you can try:
flutter clean
and flutter upgrade
in the terminalConsidering the lack of information you've provided, I can only consider the fact that the good practice for creating mobile applications, judging by the fact that a mobile device's memory is usually lower( and the memory allocation is much slower ), when compared to a computer's memory and memory allocation speed, is to store your information in a database and access the needed information using queries. That could actually fix your issue. If not, please provide more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With