본문 바로가기
Development Solutions/Flutter & Dart

[flutter] Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

by studio ODOC 2021. 11. 26.
반응형

 

문제 상황

flutter 프로젝트 빌드 중에 아래와 같은 에러메시지가 표시되고 빌드에 실패합니다.

 

Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

 

 

 

 

 

해결 방법

~~/gradle/gradle.properties 내용의 org.gradle.jvmargs 부분을 수정합니다.

 

org.gradle.jvmargs=-Xmx4096M

 

 

 

 

https://www.google.com/search?q=Gradle+build+daemon+has+been+stopped%3A+JVM+garbage+collector+thrashing+and+after+running+out+of+JVM+memory&rlz=1C1IBEF_koKR957KR957&oq=Gradle+build+daemon+has+been+stopped%3A+JVM+garbage+collector+thrashing+and+after+running+out+of+JVM+memory&aqs=chrome..69i57.254j0j7&sourceid=chrome&ie=UTF-8 

 

Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory - Google 검색

I add gradle.properties file in my root project dir,and add this config: org.gradle.jvmargs=-Xmx4096M. works.

www.google.com

 

반응형