Android Studio 版本(测试版)0.8.4
操作系统版本:Windows 8
Java JRE/JDK 版本:1.8.0_11
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
原文由 AsimRazaKhan 发布,翻译遵循 CC BY-SA 4.0 许可协议
解决方案有效:
1.在android studio中打开项目 gradle.properties 文件
2.在文件末尾添加这一行 org.gradle.jvmargs=-Xmx1024m 并保存文件
3.关闭并重新打开项目或只是清理并重新构建它