Open huyz-git opened 3 years ago
more information: run the build command multiple times, and each time it will shows different information.
first run:
$ ionic cordova build android --debug
✔ Creating ./www directory for you in 1.67ms
> cordova platform add android --save
Using cordova-fetch for cordova-android@8.0.0
Failed to fetch platform cordova-android@8.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
added 1178 packages, and audited 1245 packages in 13s
50 vulnerabilities (20 low, 12 moderate, 17 high, 1 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
[ERROR] An error occurred while running subprocess cordova.
cordova platform add android --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
second run:
$ ionic cordova build android --debug
> cordova platform add android --save
Using cordova-fetch for cordova-android@8.0.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: be.kuleuven.mitogo
Name: MiToGo
Activity: MainActivity
Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@8.0.0
Discovered plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Adding cordova-plugin-whitelist to package.json
Discovered plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for android
Adding cordova-plugin-statusbar to package.json
Discovered plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Discovered plugin "cordova-plugin-splashscreen". Adding it to the project
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
Discovered plugin "cordova-plugin-ionic-webview". Adding it to the project
Installing "cordova-plugin-ionic-webview" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-ionic-webview to package.json
Discovered plugin "cordova-plugin-ionic-keyboard". Adding it to the project
Installing "cordova-plugin-ionic-keyboard" for android
Adding cordova-plugin-ionic-keyboard to package.json
Discovered plugin "cordova-plugin-health". Adding it to the project
Failed to restore plugin "cordova-plugin-health". You might need to try adding it again. Error: CordovaError: Failed to fetch plugin git+https://github.com/stvdbac/cordova-plugin-health.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
up to date, audited 1245 packages in 14s
50 vulnerabilities (20 low, 12 moderate, 17 high, 1 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Discovered plugin "cordova-sqlite-storage". Adding it to the project
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
for package name: cordova-sqlite-storage
npm install of external dependencies ok
Adding cordova-sqlite-storage to package.json
[ERROR] An error occurred while running subprocess cordova.
cordova platform add android --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
third run:
$ ionic cordova build android --debug
> ng run app:ionic-cordova-build --platform=android
10% building 4/4 modules 0 active(node:230213) [DEP0131] DeprecationWarning: The legacy HTTP parser is deprecated.
25% building 12/15 modules 3 active ...?ref--14-3!/tmp/mitogo/src/app/app.scssBrowserslist: caniuse-lite is outdated. Please run next command `npm update`
Date: 2021-05-15T13:56:04.676Z
Hash: cb12f36eb089b4ad74cc
Time: 4227ms
chunk {cordova} cordova.js, cordova.js.map (cordova) 62.4 kB [entry] [rendered]
chunk {es2015-polyfills} es2015-polyfills.js, es2015-polyfills.js.map (es2015-polyfills) 285 kB [initial] [rendered]
chunk {main} main.js, main.js.map (main) 602 bytes [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 93.2 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 67.5 kB [initial] [rendered]
ERROR in src/app/services/googlefit.service.ts(39,7): error TS2322: Type 'number' is not assignable to type 'string'.
src/app/services/transfer.service.ts(4,28): error TS2307: Cannot find module 'plugins/cordova-plugin-gadgetbridge/www/gadgetbridge'.
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build --platform=android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic-cli 6.13.1 cordova 10.0.0