Gradle守护程序无法启动JVM,没有Xmx1024或任何其他错误

时间:2018-10-26 10:03:11

标签: android android-studio android-gradle build.gradle

我尝试了多种方法来成功构建Gradle 尝试了很多在线方式,但我什至无法更改org.gradle.jvmargs=-Xmx5124m 前往org.gradle.jvmargs=-Xmx1024m

org.gradle.jvmargs=-Xmx512m


    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/4.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

.

PC信息: 作业系统:Windows 8 Android Studio 3.1.4 Build#AI-173.4907809,建于2018年7月23日 JRE:1.8.0_152-release-1024-b02 amd64 JVM:JetBrains s.r.o的OpenJDK 64位服务器VM Windows 8.1 6.3

1 个答案:

答案 0 :(得分:0)

您可以转到$ USER_HOME中的.gradle文件夹,并删除除包装程序之外的所有目录。然后在android studio中再次构建,它将再次生成守护进程