Android Studio Gradle 项目“无法启动 VM 的守护进程/初始化”

新手上路,请多包涵

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 许可协议

阅读 653
1 个回答

解决方案有效:

1.在android studio中打开项目 gradle.properties 文件

2.在文件末尾添加这一行 org.gradle.jvmargs=-Xmx1024m 并保存文件

3.关闭并重新打开项目或只是清理并重新构建它

原文由 Shriram Panchal 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题