Android Studio编译错误:Unable to start the daemon process
现象:
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:
在stackoverflow上找到的解决方案:
1. studio中, File -> Close Project
2. 此时会回到android studio的欢迎界面,选择: Configure -> Settings
3. Compiler中,找到VM Options, 输入: -Xmx512m
4. 应用/OK
5. 重启studio。
6. 若还是出现该错误,重启电脑