#1 2017-01-04 13:37:06

l.yeaung
Banned
Registered: 2017-01-03
Posts: 3

How to solve gradle daemon error and Jvm error

Dear admin,when i test your application builder.Then i create a app and i had save a mytest.ab file and build.Then
I get a mytest.bat and i've execute that file. Then i get another cordova related 6 file and I've already installed
cordova,node.js,git,ant,android sdk,java jdk, gradle 3.3, but it's not worked as i expected and it's always get errors
and end.If you explain about the error .I'm so gladly  appreciate your help.sorry for my bad english.

Here is the error message of cordova cmd

"Error: Platform android already added.
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exi
t code 1
    at ChildProcess.whenDone (E:\ayn usr profile 1\ayn\Desktop\mytest\MyApp_Comp
iled\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169
:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: cmd: Command failed with exit code 1
ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Error: cmd: Command failed with exit code 1 Error output:
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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Press any key to continue . . ."

Offline

#2 2017-01-04 13:59:22

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: How to solve gradle daemon error and Jvm error

Hello l.yeaung,

l.yeaung wrote:

Dear admin,when i test your application builder.Then i create a app and i had save a mytest.ab file and build.Then
I get a mytest.bat and i've execute that file. Then i get another cordova related 6 file and I've already installed
cordova,node.js,git,ant,android sdk,java jdk, gradle 3.3, but it's not worked as i expected and it's always get errors
and end.If you explain about the error .I'm so gladly  appreciate your help.sorry for my bad english.

Here is the error message of cordova cmd

"Error: Platform android already added.
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exi
t code 1
    at ChildProcess.whenDone (E:\ayn usr profile 1\ayn\Desktop\mytest\MyApp_Comp
iled\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169
:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: cmd: Command failed with exit code 1
ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Error: cmd: Command failed with exit code 1 Error output:
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 guide chapter on the daemon at [url]https://docs.gradle.org/[/url]
2.14.1/userguide/gradle_daemon.html
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.
Press any key to continue . . ."

In fact the Cordova's console output error is more or less clear and can be resume in this: "Could not reserve enough space". This probably means your system is not capable to run Apache Cordova plus the appropiate Java stuff. If you are using a virtual machine may you can try to assign more resources for that virtual machine.

Offline

#3 2017-01-05 08:35:43

l.yeaung
Banned
Registered: 2017-01-03
Posts: 3

Re: How to solve gradle daemon error and Jvm error

Dear admin,My computer specification is Intel core i7,4gb ram,320 gb hdd drive.Did you means 4gb ram is not enough
to build with cordova system.Is it still need to upgrade my ram  4gb to 8gb ram?.If you have any other trick to assign
more resources for jvm space .Plz,show me.Thanks for quick reply.

Offline

#4 2017-01-05 11:15:14

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: How to solve gradle daemon error and Jvm error

Hello l.yeaung,

l.yeaung wrote:

Dear admin,My computer specification is Intel core i7,4gb ram,320 gb hdd drive.Did you means 4gb ram is not enough
to build with cordova system.Is it still need to upgrade my ram  4gb to 8gb ram?.If you have any other trick to assign
more resources for jvm space .Plz,show me.Thanks for quick reply.

I think your computer is enoguh, but your are using a virtual machine (plus probably other software) and then maybe such virtual machine is not enough. Maybe closing any other running programs to let the system more resources can help too. Anyway please, refer to the Apache Cordova documentation, requisites and support, since your problem is not really related with App Builder but specifically with your system and your Apache Cordova installation.

Offline

#5 2017-01-07 11:40:31

l.yeaung
Banned
Registered: 2017-01-03
Posts: 3

Re: How to solve gradle daemon error and Jvm error

Yes,admin.My problem is not related with app builder.It's related with my system and apache cordova installation.Thanks for reply.

Offline

#6 2017-01-07 13:07:14

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: How to solve gradle daemon error and Jvm error

Hello l.yeaung,

l.yeaung wrote:

Yes,admin.My problem is not related with app builder.It's related with my system and apache cordova installation.Thanks for reply.

No problem. Let me know if you have any further question.

Offline

#7 2017-01-24 18:56:21

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: How to solve gradle daemon error and Jvm error

Dear visitor,

If you find this forum's thread after searching in Google, you must know we are talking here about App Builder:

App Builder is the first and unique visual development environment that allow you to create, with or without programming knowledge, HTML5 apps, WebApps, Progressive WebApps, WebExtensions and Hybrid apps for both mobile and desktop platforms.

Feel free to try it for free now! www.getappbuilder.com

https://www.youtube.com/watch?v=VbCD0-W3ryo

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.