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

自从升级了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 3.6 下 “Unable to start the daemon process ”问题解决
构建成功!!
Android Studio 3.6 下 “Unable to start the daemon process ”问题解决

上一篇:org.springframework.context.ApplicationContextException: Unable to start embedded container; nested


下一篇:javax.persistence.EntityNotFoundException: Unable to find报错