Home > Software engineering >  FAILURE: Build failed with an exception. Cordova
FAILURE: Build failed with an exception. Cordova

Time:08-01

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

CodePudding user response:

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

  • Related