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
- gradle.properties.org.gradle.jvmargs=-xmx4608m
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.