当前位置: 代码迷 >> 综合 >> Android Studio 3.6 下 “Unable to start the daemon process ”问题解决
  详细解决方案

Android Studio 3.6 下 “Unable to start the daemon process ”问题解决

热度:45   发布时间:2023-11-17 00:18:57.0

自从升级了android 3.6之后,天天都不省心,不是插件搜索不到了,就是build.gradle构建失败,这不,又来了
显示

Error: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 guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

这是对gradle的低内存导致的结果,我们需要重新设定
如图,找到gradle.properties,添加org.gradle.jvmargs=-Xmx1024m并保存,如果文件里面已经有了,先删掉即可,如果还不行,将1024改为512
在这里插入图片描述
构建成功!!
在这里插入图片描述

  相关解决方案