Android Studio: Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.

创建项目的时候报错:

Failed to sync Gradle project 'xxx' 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:
org.gradle.jvmargs=-Xmx1024m

 

解决办法:

其实报错信息已经告诉你怎么做了

打开项目的gradle.properties文件,往里面添加一行:

org.gradle.jvmargs=-Xmx1024m

posted @ 2016-07-28 21:41  rldts  阅读(596)  评论(0编辑  收藏  举报