问题:
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/6.5/userguide/grad
翻译一下大概意思是:
无法启动守护进程。这个问题可能是由于守护进程的配置不正确引起的。例如,使用了无法识别的jvm选项。请参阅用户手册中关于守护进程的章节https://docs.gradle.org/6.5/userguide/grad
解决方案:
打开 gradle.propertise 文件(如下图)
将以下语句:
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
修改为:
org.gradle.jvmargs=-Xmx512m
最后别忘了点击右上角:Sync now ,问题就成功解决了!