Naveen
Naveen

Reputation: 1523

Android Studio Flutter Project Error: Out of Memory

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

Answers (5)

Sajjad Arvin
Sajjad Arvin

Reputation: 11

Just close emulator by task manager. emulator must fully restart

Upvotes: 0

Code on the Rocks
Code on the Rocks

Reputation: 17764

A few things you can try:

  1. Run flutter clean and flutter upgrade in the terminal
  2. Uninstall and reinstall the app
  3. (Android Studio) File -> Invalidate Caches and Restart
  4. Restart your computer

Upvotes: 7

Yemane
Yemane

Reputation: 45

I had a similar issue. I restarted my PC and it worked fine.

Upvotes: 0

Hari Upreti
Hari Upreti

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

Sergiu Nistor
Sergiu Nistor

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

Related Questions