Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 359
Naveen Avatar asked Jun 10 '18 18:06

Naveen


People also ask

Can I use flutter in 4gb RAM?

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.

How much space does flutter need?

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.

Is there an alternative to Android Studio flutter?

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.


2 Answers

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
like image 187
Joe Muller Avatar answered Sep 22 '22 11:09

Joe Muller


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.

like image 26
Sergiu Nistor Avatar answered Sep 21 '22 11:09

Sergiu Nistor