简体   繁体   中英

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

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

variable value: -Xmx1024M

hope it will help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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