Android/Situation Note
Gradle error : Invalid maximum heap size: -Xmx4608M
단돈백이원
2022. 5. 18. 08:41
Gradle error : Invalid maximum heap size: -Xmx4608M
오후 8:29 Gradle sync failed: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.4.1/userguide/gradle_daemon.html
Process command line: C:\Program Files (x86)\Java\jdk1.8.0_191\bin\java.exe -Xmx1536m -Dfile.encoding=x-windows-949 -Duser.country=KR -Duser.language=ko -Duser.variant -cp C:\Users\kkkkk\.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4.1
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap
Consult IDE log for more details (Help | Show Log) (123 ms)
gradle.properties
의org.gradle.jvmargs=-Xmx1536m
항목을-Xmx512m
으로 낮춰서 해결.