自从升级了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

构建成功!!