java - 安卓工作室错误 :Unable to start the daemon process

标签 java android jvm user-guide gradle-daemon

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,这就是我解决此问题的方法:

  1. 打开您新创建的项目。
  2. 现在打开 gradle.properties 并更改 JVM 参数。 即 org.gradle.jvmargs=-Xmx1024m 基本上它带有默认值 -Xm1536m,但不知何故不起作用(至少对我而言)。
  3. 然后重建项目,它应该可以工作。

关于java - 安卓工作室错误 :Unable to start the daemon process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39910770/

相关文章:

java - 关闭套接字唤醒选择器

java - 如何在spring jpa中使用to转换器

java - 覆盖 cglib 代理上的 equals

java - 是否可以在应用程序启动之间将 JVM 保留在内存中?

java - Android Studio 模拟器 - Java 实例不支持 32 位 JVM

java - 强制参数化类型作为构造函数参数是正确的

java - Android 在 RecyclerView 中显示从 json 到 cardview 的数据

android - 过滤带前缀号码的联系人

android - ChatSecure应用程序崩溃

java - JVM 错误 : Process finished with exit code 134 (interrupted by signal 6: SIGABRT)