Android Studio 2.2版本 操作系统版本:Windows 10 Java JRE/JDK版本:1.8.0_51
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 Studio 版本 2.2.2,这就是我解决此问题的方法:
- 打开您新创建的项目。
- 现在打开 gradle.properties 并更改 JVM 参数。 即 org.gradle.jvmargs=-Xmx1024m 基本上它带有默认值 -Xm1536m,但不知何故不起作用(至少对我而言)。
- 然后重建项目,它应该可以工作。
关于java - 安卓工作室错误 :Unable to start the daemon process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39910770/