码迷,mamicode.com
首页 > 系统相关 > 详细

错误:无法启动守护进程:不能为对象堆预留足够的空间。

时间:2016-10-05 20:05:47      阅读:1124      评论:0      收藏:0      [点我收藏+]

标签:

Error:Unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory to Gradle in the project‘s gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
<em>org.gradle.jvmargs=-Xmx1024m</em>

解决办法:

gradle.properties文件中添加org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m   或    org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m

方法二:欢迎页------Configure > Settings.-----------Build, Execution, Deployment > Compiler--------Build process heap size (Mbytes)改成1024

错误:无法启动守护进程:不能为对象堆预留足够的空间。

标签:

原文地址:http://www.cnblogs.com/ruoshuiwuxin/p/5932668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!