码迷,mamicode.com
首页 > 移动开发 > 详细

Android Studio 中 gradle 构建 堆栈空间不足

时间:2017-07-17 22:05:20      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:uid   guid   art   空间   for   ring   doc   div   settings   

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
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

解决办法:

Configure -> Settings -> Gradle

Gradle VM Options 项 设置为:

-Xmx512m

 

Android Studio 中 gradle 构建 堆栈空间不足

标签:uid   guid   art   空间   for   ring   doc   div   settings   

原文地址:http://www.cnblogs.com/zhujiabin/p/7197346.html

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