Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

java.lang.OutOfMemoryError when starting Flutter project

$
0
0

everyone I'm working on Flutter project but when I want to run my application I faced this error:

Execution failed for task ':app:xxxxxxxx'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacadejava.lang.OutOfMemoryError (no error message)

I have tried multiple solutions like:

  • changing the gradle.properties file to:

    • gradle.properties.org.gradle.jvmargs=-xmx4608m
      android.enableR8=true
      android.useAndroidX=true
      android.enableJetifier=true
  • Restarting my Pc

  • Checking that I have enougth memory in my Pc and My phone

  • Raising the minSdkVersion to 30

but it seems not to help too much.


Viewing all articles
Browse latest Browse all 12111

Trending Articles