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

Android studio Gradle project sync failed

时间:2016-04-14 14:12:09      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

Android studio 构建项目出错

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>
<a href="http://www.gradle.org/docs/current/userguide/build_environment.html">Read Gradle‘s configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html">Read about Java‘s heap size</a>

 

修改项目gradle.properties文件,添加下面一行代码已存在则更改org.gradle.jvmargs=-Xmx512m:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m 

 

Android studio Gradle project sync failed

标签:

原文地址:http://www.cnblogs.com/lmf-techniques/p/5390625.html

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