您的位置:首页 > 移动开发 > Objective-C

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

2016-07-28 21:41 836 查看
创建项目的时候报错:

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: