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

Dulcea ·
更新时间:2024-11-13
· 617 次阅读

自从升级了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
在这里插入图片描述
构建成功!!
在这里插入图片描述


作者:小松与蘑菇



Android Studio process studio TO start daemon Android

需要 登录 后方可回复, 如果你还没有账号请 注册新账号