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

原文地址:https://www.cnblogs.com/qrlozte/p/5716367.html