ionic2 - ionic cordova build android fails -
i trying run ionic cordova build android failing below error:
ps c:\users\dell\desktop\recipe> ionic cordova build android ? ionic cli (local version) has update available (3.7.0 => 3.9.2)! install it? no [info] not automatically updating cli. can update manually:
npm install --save-dev --save-exact ionic@latest
running app-scripts build: --build --iscordovaserve --nobrowser
[00:09:37] build dev started ... [00:09:37] clean started ... [00:09:37] clean finished in 12 ms [00:09:37] copy started ... [00:09:37] transpile started ... [00:09:43] transpile finished in 5.09 s [00:09:43] preprocess started ... [00:09:43] deeplinks started ... [00:09:43] deeplinks finished in 127 ms [00:09:43] preprocess finished in 129 ms [00:09:43] webpack started ... [00:09:44] copy finished in 6.24 s [00:09:59] webpack finished in 15.82 s [00:09:59] sass started ... [00:10:02] sass finished in 3.59 s [00:10:02] postprocess started ... [00:10:02] postprocess finished in 7 ms [00:10:02] lint started ... [00:10:02] build dev finished in 24.82 s
ionic cordova prepare cordova prepare | running command [00:10:09] tslint: c:/users/dell/desktop/recipe/src/pages/shopping-list/shopping-list.ts, line: 2 imports unused.
l1: import { component } '@angular/core'; l2: import { ionicpage, navcontroller, navparams } 'ionic-angular'; l3: import { ingredientservice } "../../service/shopping-list";
[00:10:09] tslint: c:/users/dell/desktop/recipe/src/pages/edit-recipe/edit-recipe.ts, line: 3 imports unused.
l2: import { ionicpage, navcontroller, navparams, actionsheetcontroller, alertcontroller, toastcontroller }
'ionic-angular' ; l3: import { recipe } "../../models/recipe"; l4: import { formgroup, formcontrol, validators, formarray } "@angular/forms";
[00:10:09] tslint: c:/users/dell/desktop/recipe/src/pages/tabs/tabs.ts, line: 2 imports unused.
l1: import { component } '@angular/core'; l2: import { ionicpage, navcontroller, navparams } 'ionic-angular'; l3: import { shoppinglistpage } "../shopping-list/shopping-list";
[00:10:09] lint finished in 6.88 s √ running command - done!
you have been opted out of telemetry. change this, run: cordova telemetry on.
cordova build android × running command - failed!
[error] cordova encountered error. may more insight running cordova command above directly.
[error] error occurred while running cordova build android (exit code 1):
have been opted out of telemetry. change this, run: cordova telemetry on. android_home=c:\users\dell\appdata\local\android\sdk java_home=c:\program files (x86)\java\jdk1.8.0_144 subproject path: cordovalib starting gradle daemon (subsequent builds faster) failure: build failed exception. * went wrong: unable start daemon process. problem might caused incorrect configuration of daemon. example, unrecognized jvm option used. please refer user guide chapter on daemon @ https://docs.gradle.org/3.3/userguide/gradle_daemon.html please read following process output find out more: ----------------------- error occurred during initialization of vm not reserve enough space 2097152kb object heap * try: run --stacktrace option stack trace. run --info or --debug option more log output. error: cmd: command failed exit code 1 error output: failure: build failed exception. * went wrong: unable start daemon process. problem might caused incorrect configuration of daemon. example, unrecognized jvm option used. please refer user guide chapter on daemon @ https://docs.gradle.org/3.3/userguide/gradle_daemon.html please read following process output find out more: ----------------------- error occurred during initialization of vm not reserve enough space 2097152kb object heap * try: run --stacktrace option stack trace. run --info or --debug option more log output.
and on running ionic info:
cli packages: (c:\users\dell\desktop\recipe\node_modules) @ionic/cli-plugin-cordova : 1.6.2 @ionic/cli-plugin-ionic-angular : 1.4.1 @ionic/cli-utils : 1.7.0 ionic (ionic cli) : 3.7.0 global packages: cordova cli : 7.0.1 local packages: @ionic/app-scripts : 2.1.3 cordova platforms : android 6.2.3 ionic framework : ionic-angular 3.6.0 system: node : v6.11.2 os : windows 10 npm : 5.3.0
i have android studio installed , did build app before one. why error on one. can asssist.
Comments
Post a Comment