0

I know this question is already frequently asked. But I tried several solutions, and I'm still 'Unable to start the daemon process'... Thanks in advance for your help.

What I've done:

Versions:

  • java version "1.8.0_241"

  • Ionic: CLI 4.12.0

  • Gradle 6.3

  • Cordova: 9.0.0 (cordova-lib@9.0.1)

Lines within the CMD:

cordova run android Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\jimmy\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\jimmy\AppData\Local\Android\Sdk (DEPRECATED) Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • What went wrong: 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/6.3/userguide/gradle_daemon.html Process command line: C:\Program Files (x86)\Java\jdk1.8.0_241\bin\java.exe -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=NL -Duser.language=nl -Duser.variant -cp C:\Gradle\gradle-6.3\lib\gradle-launcher-6.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.3 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

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org C:\Gradle\gradle-6.3\bin\gradle: Command failed with exit code 1 [ERROR] An error occurred while running subprocess cordova.

    cordova run android exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.
    
  • Go to gradle.org and install the latest gradle version(it shouls be 6.+) download it and put it in c://, download instructions will be in the same page of the download and how to declare it in you system environment, and after that try your build. – Mostafa Harb Apr 05 '20 at 10:15
  • If you have gradle 6.3 , then maybe cordova version may need to be updated . – Mostafa Harb Apr 05 '20 at 10:22
  • Thanks for your response @MostafaHarb. But I've Gradle 6.3 and the latest version of Cordova (9.0). If you have any other thoughts, would be nice! – Eleutheriuss Apr 05 '20 at 11:59
  • When you start your build, some files will be generated in platforms but not all, when the error happens open the directory with android studio and wait till it sync and then see if it asks for updates for gradle or whatever. – Mostafa Harb Apr 05 '20 at 12:34
  • Is the issue resolved ? @Eleutheriuss – mperle Jun 10 '20 at 07:05

0 Answers0