Reputation: 1523
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
Upvotes: 13
Views: 21228
Reputation: 11
Just close emulator by task manager. emulator must fully restart
Upvotes: 0
Reputation: 17764
A few things you can try:
flutter clean
and flutter upgrade
in the terminalUpvotes: 7
Reputation: 101
shutdown computer completely, don't to hibernate. That works for me. You can shutdown computer completely using this command
shutdown /s /f /t 0
Upvotes: 0
Reputation: 29
Considering 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.
Upvotes: 1