Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Ionic 7 project - livereload Cordova does not work #367

Open
halilpolathalil opened this issue Nov 11, 2023 · 0 comments
Open

New Ionic 7 project - livereload Cordova does not work #367

halilpolathalil opened this issue Nov 11, 2023 · 0 comments
Labels

Comments

@halilpolathalil
Copy link

halilpolathalil commented Nov 11, 2023

Version:

2.0.0

Description:

Steps to Reproduce:

I create a new angular based starter - blank - Ionic 7 project via

ionic start testapp

I then added the cordova android platform with the following command:

ionic cordova platform add android

I run the following command to do a livereload:

ionic cordova run android -l

it compile and install device successfully. But after app start splash screen have appeared then give error as following screen.
photo_2023-11-11_20-17-55

when I run the following command:
ionic cordova run android or ionic cordova run android -l --external it is work successfully. But I will use "navigator.mediaDevices" in my project. If I use --external parameter in my command, "navigator.mediaDevices" is undefined. Without -l and external parameter, "navigator.mediaDevices" is work as expected. So I need to work with ionic cordova run android -l command.

Command Output:

` ionic:lib Terminal info: { ci: false, shell: 'C:\\Windows\\system32\\cmd.exe', tty: true, windows: true } +0ms
  ionic:lib CLI global options: { _: [ 'cordova', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, l: true, project: null, '--': [] } +4ms
  ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
  ionic:lib:project Project details: { context: 'app', type: 'angular', errors: [], configPath: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\ionic.config.json' } +0ms
  ionic Context: { binPath: 'C:\\Users\\POLAT\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli\\bin\\ionic', libPath: 'C:\\Users\\POLAT\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli', execPath: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp', version: '7.1.5' } +0ms
  ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\config.xml', package.json: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\package.json') +0ms
  ionic:commands:run Native platform devices: [
  ionic:commands:run   {
  ionic:commands:run     platform: 'android',
  ionic:commands:run     model: 'Xiaomi Redmi Note 9 Pro',
  ionic:commands:run     sdkVersion: '31',
  ionic:commands:run     id: '6ef0a9fd'
  ionic:commands:run   }
  ionic:commands:run ] +0ms
[INFO] Hardware device(s) found for android. Using --device.
  ionic:lib:serve serve options: {
  ionic:lib:serve   '--': [],
  ionic:lib:serve   host: 'localhost',
  ionic:lib:serve   browser: undefined,
  ionic:lib:serve   browserOption: undefined,
  ionic:lib:serve   engine: 'cordova',
  ionic:lib:serve   externalAddressRequired: false,
  ionic:lib:serve   livereload: true,
  ionic:lib:serve   open: false,
  ionic:lib:serve   platform: 'android',
  ionic:lib:serve   port: 8100,
  ionic:lib:serve   proxy: true,
  ionic:lib:serve   project: 'app',
  ionic:lib:serve   publicHost: undefined,
  ionic:lib:serve   verbose: false,
  ionic:lib:serve   consolelogs: undefined,
  ionic:lib:serve   consolelogsPort: undefined,
  ionic:lib:serve   ssl: undefined,
  ionic:lib:serve   configuration: undefined,
  ionic:lib:serve   sourcemaps: undefined
  ionic:lib:serve } +0ms
  ionic:lib:telemetry Sending telemetry for command: 'ionic cordova run' [
  ionic:lib:telemetry   'android',
  ionic:lib:telemetry   '--livereload',
  ionic:lib:telemetry   '--device',
  ionic:lib:telemetry   '--verbose',
  ionic:lib:telemetry   '--interactive',
  ionic:lib:telemetry   '--color'
  ionic:lib:telemetry ] +0ms
  ionic:lib:hooks Looking for ionic:serve:before npm script. +0ms
  ionic:utils-network checking for open port on 0.0.0.0:8100 +0ms
  ionic:utils-network checking for open port on fe80::b9c9:e1cb:4f37:42c2:8100 +10ms
  ionic:utils-network checking for open port on 192.168.56.1:8100 +3ms
  ionic:utils-network checking for open port on fe80::5aaa:4063:6bc6:4673:8100 +2ms
  ionic:utils-network checking for open port on 192.168.1.4:8100 +2ms
  ionic:utils-network checking for open port on ::1:8100 +3ms
  ionic:utils-network checking for open port on 127.0.0.1:8100 +1ms
  ionic:lib:serve Looking for ionic:serve npm script. +41ms
> ng.cmd run app:ionic-cordova-serve --host=localhost --port=8100 --platform=android
[ng] - Generating browser application bundles (phase: setup)...
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "x-powered-by" to true
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "etag" to 'weak'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "etag fn" to [Function: generateETag]
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "env" to 'development'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "query parser" to 'extended'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "query parser fn" to [Function: parseExtendedQueryString]
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "subdomain offset" to 2
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "trust proxy" to false
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "trust proxy fn" to [Function: trustNone]
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application booting in development mode
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "view" to [Function: View]
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "views" to 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\views'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:application set "jsonp callback name" to 'callback'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' query
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' expressInit
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route new '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route acl '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route bind '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route checkout '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route connect '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route copy '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route delete '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route get '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route head '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route link '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route lock '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route m-search '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route merge '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route mkactivity '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route mkcalendar '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route mkcol '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route move '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route notify '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route options '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route patch '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route post '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route propfind '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route proppatch '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route purge '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route put '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route rebind '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route report '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route search '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route source '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route subscribe '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route trace '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route unbind '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route unlink '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route unlock '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route unsubscribe '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route new '/__webpack_dev_server__/sockjs.bundle.js'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/__webpack_dev_server__/sockjs.bundle.js'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route get '/__webpack_dev_server__/sockjs.bundle.js'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route new '/webpack-dev-server/invalidate'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/webpack-dev-server/invalidate'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route get '/webpack-dev-server/invalidate'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route new '/webpack-dev-server/open-editor'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/webpack-dev-server/open-editor'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route get '/webpack-dev-server/open-editor'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route new '/webpack-dev-server'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/webpack-dev-server'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:route get '/webpack-dev-server'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '*' bound setHeaders
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '*'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' middleware
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' <anonymous>
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' middleware
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '/' bound serveMagicHtml
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '/'
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router use '*' middleware
[ng] Sat, 11 Nov 2023 17:27:44 GMT express:router:layer new '*'
[ng] ✔ Browser application bundle generation complete.
[ng] Initial Chunk Files                                                                                     | Names                   |  Raw Size
[ng] vendor.js                                                                                               | vendor                  |   3.64 MB |
[ng] polyfills.js                                                                                            | polyfills               | 336.76 kB |
[ng] styles.css, styles.js                                                                                   | styles                  | 292.56 kB |
[ng] cordova.js                                                                                              | cordova                 |  62.29 kB |
[ng] main.js                                                                                                 | main                    |  15.75 kB |
[ng] runtime.js                                                                                              | runtime                 |  14.11 kB |
[ng]
[ng]                                                                                                         | Initial Total           |   4.34 MB
[ng] 
[ng] Lazy Chunk Files                                                                                        | Names                   |  Raw Size
[ng] polyfills-core-js.js                                                                                    | polyfills-core-js       | 152.18 kB |
[ng] node_modules_ionic_core_dist_esm_ion-datetime_3_entry_js.js                                             | -                       | 143.61 kB |
[ng] node_modules_ionic_core_dist_esm_ion-item_8_entry_js.js                                                 | -                       |  92.17 kB |
[ng] node_modules_ionic_core_dist_esm_ion-app_8_entry_js.js                                                  | -                       |  77.78 kB |
[ng] node_modules_ionic_core_dist_esm_ion-modal_entry_js.js                                                  | -                       |  77.51 kB |
[ng] node_modules_ionic_core_dist_esm_ion-select_3_entry_js.js                                               | -                       |  74.58 kB |
[ng] node_modules_ionic_core_dist_esm_ion-textarea_entry_js.js                                               | -                       |  64.53 kB |
[ng] common.js                                                                                               | common                  |  62.21 kB |
[ng] node_modules_ionic_core_dist_esm_ion-input_entry_js.js                                                  | -                       |  62.08 kB |
[ng] node_modules_ionic_core_dist_esm_ion-popover_entry_js.js                                                | -                       |  58.37 kB |
[ng] default-node_modules_ionic_core_dist_esm_data-44d9e816_js.js                                            | -                       |  55.98 kB |
[ng] node_modules_ionic_core_dist_esm_ion-refresher_2_entry_js.js                                            | -                       |  53.28 kB |
[ng] node_modules_ionic_core_dist_esm_ion-alert_entry_js.js                                                  | -                       |  52.94 kB |
[ng] node_modules_ionic_core_dist_esm_ion-range_entry_js.js                                                  | -                       |  50.72 kB |
[ng] node_modules_ionic_core_dist_esm_ion-menu_3_entry_js.js                                                 | -                       |  43.95 kB |
[ng] node_modules_ionic_core_dist_esm_ion-segment_2_entry_js.js                                              | -                       |  40.64 kB |
[ng] node_modules_ionic_core_dist_esm_ion-button_2_entry_js.js                                               | -                       |  38.88 kB |
[ng] node_modules_ionic_core_dist_esm_ion-nav_2_entry_js.js                                                  | -                       |  37.47 kB |
[ng] node_modules_ionic_core_dist_esm_ion-searchbar_entry_js.js                                              | -                       |  36.84 kB |
[ng] node_modules_ionic_core_dist_esm_ion-toggle_entry_js.js                                                 | -                       |  35.43 kB |
[ng] node_modules_ionic_core_dist_esm_ion-radio_2_entry_js.js                                                | -                       |  34.37 kB |
[ng] node_modules_ionic_core_dist_esm_ion-toast_entry_js.js                                                  | -                       |  34.19 kB |
[ng] node_modules_ionic_core_dist_esm_ion-item-option_3_entry_js.js                                          | -                       |  34.05 kB |
[ng] node_modules_ionic_core_components_ios_transition_js.js                                                 | ios-transition-js       |  32.36 kB |
[ng] node_modules_ionic_core_dist_esm_ion-route_4_entry_js.js                                                | -                       |  32.30 kB |
[ng] node_modules_ionic_core_dist_esm_ion-action-sheet_entry_js.js                                           | -                       |  31.84 kB |
[ng] node_modules_ionic_core_dist_esm_ion-accordion_2_entry_js.js                                            | -                       |  27.81 kB |
[ng] node_modules_ionic_core_dist_esm_ion-tab-bar_2_entry_js.js                                              | -                       |  27.21 kB |
[ng] node_modules_ionic_core_dist_esm_ion-checkbox_entry_js.js                                               | -                       |  27.19 kB |
[ng] node_modules_ionic_core_dist_esm_input-shims-d0c93e5d_js.js                                             | input-shims-d0c93e5d-js |  27.02 kB |
[ng] node_modules_ionic_core_dist_esm_ion-fab_3_entry_js.js                                                  | -                       |  26.67 kB |
[ng] polyfills-dom.js                                                                                        | polyfills-dom           |  26.61 kB |
[ng] node_modules_ionic_core_dist_esm_ion-picker-internal_entry_js.js                                        | -                       |  24.68 kB |
[ng] node_modules_ionic_core_dist_esm_ion-progress-bar_entry_js.js                                           | -                       |  21.60 kB |
[ng] node_modules_ionic_core_dist_esm_ion-breadcrumb_2_entry_js.js                                           | -                       |  20.74 kB |
[ng] node_modules_ionic_core_dist_esm_ion-datetime-button_entry_js.js                                        | -                       |  18.63 kB |
[ng] node_modules_ionic_core_dist_esm_ion-picker-column-internal_entry_js.js                                 | -                       |  18.57 kB |
[ng] node_modules_stencil_core_internal_client_shadow-css_js.js                                              | shadow-css-js           |  18.53 kB |
[ng] node_modules_ionic_core_dist_esm_ion-loading_entry_js.js                                                | -                       |  17.64 kB |
[ng] node_modules_ionic_core_dist_esm_ion-back-button_entry_js.js                                            | -                       |  15.41 kB |
[ng] node_modules_ionic_core_dist_esm_ion-card_5_entry_js.js                                                 | -                       |  14.91 kB |
[ng] default-node_modules_ionic_core_dist_esm_form-controller-64edeaad_js-node_modules_ionic_core_-4567a5.js | -                       |  14.59 kB | 
[ng] node_modules_ionic_core_dist_esm_ion-reorder_2_entry_js.js                                              | -                       |  13.81 kB |
[ng] node_modules_ionic_core_dist_esm_ion-infinite-scroll_2_entry_js.js                                      | -                       |  13.42 kB |
[ng] node_modules_ionic_core_dist_esm_ion-col_3_entry_js.js                                                  | -                       |  13.25 kB |
[ng] node_modules_ionic_core_dist_esm_ion-tab_2_entry_js.js                                                  | -                       |  10.30 kB |
[ng] node_modules_ionic_core_dist_esm_ion-split-pane_entry_js.js                                             | -                       |   9.05 kB |
[ng] node_modules_ionic_core_dist_esm_ion-spinner_entry_js.js                                                | -                       |   8.52 kB |
[ng] src_app_tabs_tabs_module_ts.js                                                                          | tabs-tabs-module        |   7.99 kB |
[ng] node_modules_ionic_core_dist_esm_ion-chip_entry_js.js                                                   | -                       |   7.87 kB |
[ng] src_app_tab1_tab1_module_ts.js                                                                          | tab1-tab1-module        |   7.35 kB |
[ng] src_app_tab3_tab3_module_ts.js                                                                          | tab3-tab3-module        |   7.35 kB |
[ng] src_app_tab2_tab2_module_ts.js                                                                          | tab2-tab2-module        |   7.34 kB |
[ng] node_modules_ionic_core_dist_esm_index-f0cc4e14_js.js                                                   | index-f0cc4e14-js       |   6.84 kB |
[ng] node_modules_ionic_core_dist_esm_ion-ripple-effect_entry_js.js                                          | -                       |   6.24 kB |
[ng] node_modules_ionic_core_dist_esm_ion-avatar_3_entry_js.js                                               | -                       |   5.50 kB |
[ng] node_modules_ionic_core_dist_esm_ion-img_entry_js.js                                                    | -                       |   4.63 kB |
[ng] node_modules_ionic_core_dist_esm_ion-backdrop_entry_js.js                                               | -                       |   3.24 kB |
[ng] node_modules_ionic_core_components_md_transition_js.js                                                  | md-transition-js        |   2.98 kB |
[ng] node_modules_ionic_core_dist_esm_status-tap-7ca28a1c_js.js                                              | status-tap-7ca28a1c-js  |   2.91 kB |
[ng] node_modules_ionic_core_dist_esm_ion-text_entry_js.js                                                   | -                       |   1.79 kB |
[ng]
[ng] Build at: 2023-11-11T17:27:49.990Z - Hash: 52b26cd51c08fb50 - Time: 5759ms
[ng] √ Compiled successfully.
  ionic:lib:serve awaiting TCP connection to localhost:8100 +10s

[INFO] Development server running!

       Local: http://localhost:8100

       Use Ctrl+C to quit this process

  ionic:lib:events No process.send, not emitting event serve:ready +0ms
  ionic:lib:serve serve details: {
  ionic:lib:serve   custom: false,
  ionic:lib:serve   protocol: 'http',
  ionic:lib:serve   localAddress: 'localhost',
  ionic:lib:serve   externalAddress: 'localhost',
  ionic:lib:serve   externalNetworkInterfaces: [],
  ionic:lib:serve   port: 8100,
  ionic:lib:serve   externallyAccessible: false
  ionic:lib:serve } +8ms
  ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\config.xml', package.json: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\package.json') +11s
> cordova.cmd build android --device --verbose
No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking for saved platforms that haven't been added to the project
Loaded API for android project C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\cordova\Api.js
Checking for saved plugins that haven't been added to the project
Generating platform-specific config.xml from defaults for android at C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\src\main\res\xml\config.xml
Merging project's config.xml into platform-specific android config.xml
[Gradle Properties] Preparing Configuration
[Gradle Properties] Appending default configuration properties
[Gradle Properties] Appending custom configuration properties
[Gradle Properties] Updating and Saving File
Merging and updating files from [www, platforms\android\platform_www] to platforms\android\app\src\main\assets\www
  copy  platforms\android\platform_www\cordova.js platforms\android\app\src\main\assets\www\cordova.js (updated file)
  copy  platforms\android\platform_www\cordova_plugins.js platforms\android\app\src\main\assets\www\cordova_plugins.js (updated file)
  copy  platforms\android\platform_www\plugins\cordova-plugin-device\www\device.js platforms\android\app\src\main\assets\www\plugins\cordova-plugin-device\www\device.js (updated file)
  copy  platforms\android\platform_www\plugins\cordova-plugin-ionic-keyboard\www\android\keyboard.js platforms\android\app\src\main\assets\www\plugins\cordova-plugin-ionic-keyboard\www\android\keyboard.js (updated file)      
  copy  platforms\android\platform_www\plugins\cordova-plugin-ionic-webview\src\www\util.js platforms\android\app\src\main\assets\www\plugins\cordova-plugin-ionic-webview\src\www\util.js (updated file)
  copy  platforms\android\platform_www\plugins\cordova-plugin-splashscreen\www\splashscreen.js platforms\android\app\src\main\assets\www\plugins\cordova-plugin-splashscreen\www\splashscreen.js (updated file)
  copy  platforms\android\platform_www\plugins\cordova-plugin-statusbar\www\statusbar.js platforms\android\app\src\main\assets\www\plugins\cordova-plugin-statusbar\www\statusbar.js (updated file)
The "<splash>" tags were detected and are no longer supported. Please migrate to the "preference" tag "AndroidWindowSplashScreenAnimatedIcon".
Wrote out android application name "MyApp" to C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\src\main\res\values\strings.xml
The "AndroidWindowSplashScreenAnimatedIcon" is undefined. Cordova's default will be used.
Wrote out Android application SplashScreen Color to C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\src\main\res\values\colors.xml
The "AndroidWindowSplashScreenBrandingImage" is undefined. Cordova's default will be used.
Wrote out Android application SplashScreen Icon Color to C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\src\main\res\values\colors.xml
Wrote out Android application themes to C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\src\main\res\values\themes.xml
[Cordova Gradle Config] Setting "PACKAGE_NAMESPACE" to io.ionic.starter
[Cordova Gradle Config] Saving File
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Updating icons at platforms\android\app\src\main\res
  copy  resources/android/icon/drawable-hdpi-icon.png platforms\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-ldpi-icon.png platforms\android\app\src\main\res\mipmap-ldpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-mdpi-icon.png platforms\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-xhdpi-icon.png platforms\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-xxhdpi-icon.png platforms\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-xxxhdpi-icon.png platforms\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (updated file)
Updating resource files at platforms\android
  copy  resources/android/xml/network_security_config.xml platforms\android\app\src\main\res\xml\network_security_config.xml (updated file)
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
Checking Java JDK and Android SDK versions
ANDROID_HOME=undefined (recommended setting)
ANDROID_SDK_ROOT=C:\Users\POLAT\AppData\Local\Android\Sdk (DEPRECATED)
Using Android SDK: C:\Users\POLAT\AppData\Local\Android\Sdk
Subproject Path: CordovaLib
Subproject Path: app
Gradle Distribution URL: https://services.gradle.org/distributions/gradle-7.6-all.zip
Running Gradle Build: C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\gradlew -b C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\build.gradle cdvBuildDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BU¦LD SUCCESSFUL in 1s
50 actionable tasks: 50 up-to-date
Built the following apk(s): 
        C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\build\outputs\apk\debug\app-debug.apk
No scripts found for hook "after_compile".
No scripts found for hook "after_build".
  ionic:lib:cordova:project Error parsing file 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\platforms\\android\\app\\build\\outputs\\apk\\debug\\output.json': [Error: ENOENT: no such file or directory, open 'C:\Users\POLAT\Documents\My-All-Projects\teatapp\platforms\android\app\build\outputs\apk\debug\output.json'] {
  ionic:lib:cordova:project   errno: -4058,
  ionic:lib:cordova:project   code: 'ENOENT',
  ionic:lib:cordova:project   syscall: 'open',
  ionic:lib:cordova:project   path: 'C:\\Users\\POLAT\\Documents\\My-All-Projects\\teatapp\\platforms\\android\\app\\build\\outputs\\apk\\debug\\output.json'
  ionic:lib:cordova:project } +0ms
> native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --device --forward 8100:8100 --verbose
[native-run] 2023-11-11T17:27:55.716Z native-run:android:utils:sdk:resolveSDKRoot Looking for $ANDROID_HOME
[native-run] 2023-11-11T17:27:55.717Z native-run:android:utils:sdk:resolveSDKRoot Looking for $ANDROID_SDK_ROOT
[native-run] 2023-11-11T17:27:55.720Z native-run:android:utils:sdk:resolveSDKRoot Using $ANDROID_SDK_ROOT at C:\Users\POLAT\AppData\Local\Android\Sdk
[native-run] 2023-11-11T17:27:55.720Z native-run:android:utils:sdk:resolveEmulatorHome Looking for $ANDROID_EMULATOR_HOME
[native-run] 2023-11-11T17:27:55.720Z native-run:android:utils:sdk:resolveEmulatorHome Looking at $HOME/.android
[native-run] 2023-11-11T17:27:55.721Z native-run:android:utils:sdk:resolveEmulatorHome Using $HOME/.android/ at C:\Users\POLAT\.android
[native-run] 2023-11-11T17:27:55.722Z native-run:android:utils:sdk:resolveAVDHome Looking for $ANDROID_AVD_HOME
[native-run] 2023-11-11T17:27:55.722Z native-run:android:utils:sdk:resolveAVDHome Looking at $HOME/.android/avd
[native-run] 2023-11-11T17:27:55.722Z native-run:android:utils:sdk:resolveAVDHome Using $HOME/.android/avd/ at C:\Users\POLAT\.android\avd
[native-run] 2023-11-11T17:27:55.725Z native-run:android:utils:adb:getDevices Invoking adb with args: [ 'devices', '-l' ]
[native-run] 2023-11-11T17:27:55.726Z native-run:android:utils:sdk:getSDKPackage Parsing C:\Users\POLAT\AppData\Local\Android\Sdk\platform-tools\package.xml
[native-run] 2023-11-11T17:27:55.786Z native-run:android:utils:adb:parseAdbDevices Parsing adb devices from output lines: [
[native-run]   'List of devices attached',
[native-run]   '6ef0a9fd               device product:joyeuse_tr model:Redmi_Note_9_Pro device:joyeuse transport_id:1',
[native-run]   '',
[native-run]   ''
[native-run] ]
[native-run] 2023-11-11T17:27:55.788Z native-run:android:utils:adb:getDeviceProperties Invoking adb with args: [ '-s', '6ef0a9fd', 'shell', 'getprop' ]
[native-run] 2023-11-11T17:27:55.878Z native-run:android:utils:adb:getDevices Found adb devices: [
[native-run]   {
[native-run]     serial: '6ef0a9fd',
[native-run]     state: 'device',
[native-run]     type: 'hardware',
[native-run]     connection: null,
[native-run]     properties: {
[native-run]       product: 'joyeuse_tr',
[native-run]       model: 'Redmi_Note_9_Pro',
[native-run]       device: 'joyeuse',
[native-run]       transport_id: '1'
[native-run]     },
[native-run]     manufacturer: 'Xiaomi',
[native-run]     model: 'Redmi Note 9 Pro',
[native-run]     product: 'joyeuse_tr',
[native-run]     sdkVersion: '31'
[native-run]   }
[native-run] ]
[native-run] Selected hardware device 6ef0a9fd
[native-run] 2023-11-11T17:27:55.880Z native-run:android:utils:avd:getAVDINIs Discovered AVD ini files: []
[native-run] 2023-11-11T17:27:56.025Z native-run:android:utils:adb:getDeviceProperty Invoking adb with args: [ '-s', '6ef0a9fd', 'shell', 'getprop', 'dev.bootcomplete' ]
[native-run] 2023-11-11T17:27:56.129Z native-run:android:utils:adb:getDeviceProperty Invoking adb with args: [ '-s', '6ef0a9fd', 'shell', 'getprop', 'dev.bootcomplete' ]
[native-run] 2023-11-11T17:27:56.134Z native-run:android:utils:adb:waitForBoot Device 6ef0a9fd is booted!
[native-run] 2023-11-11T17:27:56.134Z native-run:android:utils:adb:forwardPorts Invoking adb with args: [ '-s', '6ef0a9fd', 'reverse', 'tcp:8100', 'tcp:8100' ]
[native-run] Forwarded device port 8100 to host port 8100
[native-run] Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk...
[native-run] 2023-11-11T17:27:56.164Z native-run:android:utils:adb:installApk Invoking adb with args: [
[native-run]   '-s',
[native-run]   '6ef0a9fd',
[native-run]   'install',
[native-run]   '-r',
[native-run]   '-t',
[native-run]   'platforms\\android\\app\\build\\outputs\\apk\\debug\\app-debug.apk'
[native-run] ]
[native-run] 2023-11-11T17:27:56.210Z native-run:android:utils:adb:waitForBoot Device 6ef0a9fd is booted!
[native-run] Starting application activity io.ionic.starter/io.ionic.starter.MainActivity...
[native-run] 2023-11-11T17:27:58.633Z native-run:android:utils:adb:startActivity Invoking adb with args: [
[native-run]   '-s',
[native-run]   '6ef0a9fd',
[native-run]   'shell',
[native-run]   'am',
[native-run]   'start',
[native-run]   '-W',
[native-run]   '-n',
[native-run]   'io.ionic.starter/io.ionic.starter.MainActivity'
[native-run] ]
[native-run] Run Successful
`

SDK Info:

`Ionic:

   Ionic CLI                     : 7.1.5 (C:\Users\POLAT\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 7.5.4
   @angular-devkit/build-angular : 16.2.10
   @angular-devkit/schematics    : 16.2.10
   @angular/cli                  : 16.2.10
   @ionic/angular-toolkit        : 7.0.0

Cordova:

   Cordova CLI       : 12.0.0 ([email protected])
   Cordova Platforms : android 12.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 2.0.0

System:

   Android SDK Tools : 26.1.1 (C:\Users\POLAT\AppData\Local\Android\Sdk)
   NodeJS            : v18.18.1 (C:\Program Files\nodejs\node.exe)
   npm               : 10.2.3
   OS                : Windows 10`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant