android studio错误:无法启动守护程序进程
Android Studio 2.2版本
操作系统版本:Windows 10
Java JRE / JDK版本:1.8.0_51
Version of Android Studio 2.2 OS version: Windows 10 Java JRE/JDK version: 1.8.0_51
错误:无法启动守护程序进程。由于守护程序配置不正确导致此问题可能是
。例如,使用了
无法识别的jvm选项。请参阅用户指南
关于守护程序的章节,请参阅
https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html 请
阅读以下流程输出以了解更多信息:
-----------------------初始化VM时出错无法为1572864KB对象堆保留足够的空间
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
https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html Please
read the following process output to find out more:
----------------------- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
我在win 10(32位)上使用Android工作室版本2.2.2,这就是我解决这个问题的方法:
Im using Android studio version 2.2.2 on win 10 (32 bit) and this is how i fix this issue:
- 打开新创建的项目。
- 现在打开gradle.properties并更改JVM参数。
ie org.gradle.jvmargs = -Xmx1024m
基本上它带有-Xm1536m的默认值,不知何故不起作用(至少对我而言)。 - 然后重建项目,它应该工作。