简体   繁体   English

FAILURE:构建失败并出现异常。 Cordova

[英]FAILURE: Build failed with an exception. Cordova

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 Manual chapter on the daemon at https://docs.gradle.org/7.5/userguide/gradle_daemon.html
Process command line: C:\Program Files (x86)\Java\jdk1.8.0_341\bin\java.exe -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=IN -Duser.language=en -Duser.variant -cp C:\Users\ASUS\Downloads\gradle-7.5-bin\gradle-7.5\lib\gradle-launcher-7.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.5
Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB 

object heap object 堆

this is very common problem with many different solutions.这是许多不同解决方案的常见问题。 As some of them can be difficult to implement, I think the easiest is to add to your System Variables this:由于其中一些可能难以实现,我认为最简单的方法是将以下内容添加到您的系统变量中:

variable name: _JAVA_OPTIONS变量名: _JAVA_OPTIONS

variable value: -Xmx1024M变量值: -Xmx1024M

hope it will help希望它会有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM