ERROR: R8: java.lang.OutOfMemoryError: Java heap space #2632
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
or
Expected resultsAndroid build passes on M1 machine as I can't change it when using free plan. Actual resultsAndroid build fails with error message:
Build id (optional)668fd087612f74af828bfd11 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hey @damianzdunekinertia,
|
Beta Was this translation helpful? Give feedback.
-
Super, While I’m closing our discussion for now, if you have any other questions or suggestions, feel free to reply back or start a new discussion anytime. Have a nice day! |
Beta Was this translation helpful? Give feedback.
-
Different gradle.properties take priority. So modifying the Or
|
Beta Was this translation helpful? Give feedback.
-
I got it worked out finally by creating |
Beta Was this translation helpful? Give feedback.
Hey @damianzdunekinertia
After checking your gradlew file, please add the below snippet
instead of
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain -Dorg.gradle.jvmargs="-Xmx4096m" "$@"
Please try it locally first and let me know, if you run into any issues.