Error Out Of Memory in flutter and Android studio
Asked Answered
W

10

11

today when i try to run my flutter project on android studio, unfortunately i have got this error:

c:\b\s\w\ir\cache\builder\src\third_party\dart\runtime\vm\zone.cc: 90: error: Out of memory.
version=2.7.0 (Mon Dec 2 20:10:59 2019 +0100) on "windows_x64"
thread=1736, isolate=main(00000239E9F1B690)
  pc 0x00007ff7ad514adb fp 0x0000003f991fc630 Unknown symbol
-- End of DumpStackTrace 

how can i solve it?

Wolf answered 1/2, 2020 at 17:3 Comment(3)
I'm getting the very same issue when running "pub get" on cmd-line (Amazon Linux). The project is pure dart; no flutter.Staples
You can try run flutter clean.Windywindzer
I have 16 gigs of RAM but still experienced this issue. Fyi, I run Android Studio with Emulator.Babin
S
14

I just restarted my laptop.It worked

Swastika answered 11/10, 2020 at 6:20 Comment(0)
A
10

Restarting Android Studio is what worked for me Go to

File-> Invalidate Cache/ Restart -> Just Restart

Anthesis answered 16/3, 2021 at 2:24 Comment(0)
A
4

Try to do the following steps:

  1. write this command in your terminal : $ flutter clean
  2. in file tab bar click on Invalidate caches
  3. restart

and it will be OK.

Agist answered 20/9, 2020 at 11:45 Comment(0)
B
0

Got easiest solution is just delete the build folder of your Flutter project and Run again.

enter image description here

Taken risk but worked for me.

Bumblebee answered 6/3, 2021 at 12:39 Comment(0)
O
0

I got the same problem. Try the below solution:

  1. Close Android Studio
  2. Restart your Computer
  3. Open C\Users\Your_Name\
  4. Delete the file ".gradle"
  5. Open Android Studio again and rebuild your project.
Organon answered 11/12, 2021 at 2:53 Comment(0)
F
0
  1. flutter clean
  2. flutter pub get
  3. invalidate caches/restart
Flection answered 16/1, 2022 at 10:52 Comment(0)
I
0

tyr running below commands in your project

cd android
flutter gradlew clean or ./gradlew clean
cd ..
flutter clean
flutter pub get
Imparadise answered 25/7, 2022 at 11:41 Comment(0)
A
-1

List item 2.cd android 3.flutter gradlew clean or ./gradlew clean 4.flutter clean 5.flutter pub get 6.in file tab bar click on Invalidate caches 7.restart

Angola answered 10/3, 2023 at 5:37 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Celle
S
-1
  • There is no requirement to restart or clean the project.
  • Just add the below line to your AndroidManifest.xml file & run the project.

android:largeHeap="true"

Stopover answered 25/8, 2023 at 5:37 Comment(0)
C
-2

In my: \dart\runtime\vm\zone.cc: 90: error: Out of memory.

I'm change in yanl: from: flutter_localizations: sdk: flutter intl:

to: intl: flutter_localizations:

and reask: pub get

Ctenophore answered 18/5, 2020 at 9:23 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.