Currently, I have undertaken the task of upgrading my Ionic application from version 3 to Ionic 5, In the process, I have upgraded all the different breaking changes to the application, and I am able to successfully build the application using these commands:
ng serve
ionic build
ionic build -prod
Once I have no compilation errors I use the following command to build the android application to test the changes:
ionic cordova build android
Once I get the application running on my emulator I get the following logs of different errors. I found different references online that showed similar issues but I was not able to use any of the solutions on my application. I just want to know what may be causing these issues and how I can resolve them?
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)
D/EGL_emulation: eglMakeCurrent: 0xe5006e00: ver 3 0 (tinfo 0xcda96370)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 2
D/EGL_emulation: eglMakeCurrent: 0xe5006e00: ver 3 0 (tinfo 0xcda96370)
D/EGL_emulation: eglMakeCurrent: 0xe5006e00: ver 3 0 (tinfo 0xcda96370)
W/VideoCapabilities: Unrecognized profile 4 for video/hevc
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
D/EGL_emulation: eglMakeCurrent: 0xe5006e00: ver 3 0 (tinfo 0xcda96370)
W/cr_CrashFileManager: /data/user/0/com.clinakos.clinakos/cache/WebView/Crash Reports does not exist or is not a directory
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xcb74cdc0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xcb74cdc0: ver 3 0 (tinfo 0xcda96840)
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/build/main.css
Unable to open asset URL: file:///android_asset/www/build/main.js
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/build/vendor.js
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/build/polyfills.js
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 105 : Uncaught Error: cordova already defined
I/chromium: [INFO:CONSOLE(105)] "Uncaught Error: cordova already defined", source: file:///android_asset/www/cordova.js (105)
I/inakos.clinako: Background concurrent copying GC freed 21926(2031KB) AllocSpace objects, 3(60KB) LOS objects, 49% free, 1834KB/3MB, paused 1.849ms total 116.662ms
I/ShortcutBadger: Checking if platform supports badge counters, attempt 1/3.
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 5
I/ShortcutBadger: Checking if platform supports badge counters, attempt 2/3.
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
I/ShortcutBadger: Checking if platform supports badge counters, attempt 3/3.
W/ShortcutBadger: Badge counter seems not supported for this platform: unable to resolve intent: Intent { act=android.intent.action.BADGE_COUNT_UPDATE (has extras) }
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 4 3
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 9
setVertexArrayObject: set vao to 0 (0) 4 3
D/SystemWebChromeClient: file:///android_asset/www/vendor.js: Line 31514 : Uncaught Error: Unexpected value 'SignaturePad' imported by the module 'SignupPageModule'. Please add a @NgModule annotation.
I/chromium: [INFO:CONSOLE(31514)] "Uncaught Error: Unexpected value 'SignaturePad' imported by the module 'SignupPageModule'. Please add a @NgModule annotation.", source: file:///android_asset/www/vendor.js (31514)
D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/SystemWebChromeClient: file:///android_asset/www/vendor.js: Line 90553 : Ionic Native: deviceready event fired after 309 ms
I/chromium: [INFO:CONSOLE(90553)] "Ionic Native: deviceready event fired after 309 ms", source: file:///android_asset/www/vendor.js (90553)
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/assets/icon/favicon.ico```
dependencies:
"dependencies": {
"@angular/common": "~9.1.6",
"@angular/core": "~9.1.6",
"@angular/forms": "~9.1.6",
"@angular/platform-browser": "~9.1.6",
"@angular/platform-browser-dynamic": "~9.1.6",
"@angular/router": "~9.1.6",
"@capacitor/core": "2.2.0",
"@ionic-enterprise/cordova": "^9.0.3",
"@ionic-native/background-fetch": "^5.27.0",
"@ionic-native/background-mode": "^5.27.0",
"@ionic-native/badge": "^5.27.0",
"@ionic-native/camera": "^5.27.0",
"@ionic-native/contacts": "^5.27.0",
"@ionic-native/core": "^5.0.7",
"@ionic-native/device": "^5.27.0",
"@ionic-native/file": "^5.27.0",
"@ionic-native/file-transfer": "^5.27.0",
"@ionic-native/fingerprint-aio": "^5.27.0",
"@ionic-native/firebase": "^5.27.0",
"@ionic-native/http": "^5.27.0",
"@ionic-native/in-app-browser": "^5.27.0",
"@ionic-native/keyboard": "^5.27.0",
"@ionic-native/local-notifications": "^5.27.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^5.0.0",
"@ionic/storage": "2.1.3",
"angular-signature-pad": "0.0.14",
"cordova-android": "^9.0.0",
"cordova-ios": "5.1.1",
"cordova-plugin-add-swift-support": "^2.0.2",
"cordova-plugin-advanced-http": "2.4.1",
"cordova-plugin-background-mode": "^0.7.2",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-contacts": "^3.0.1",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "6.0.2",
"cordova-plugin-fingerprint-aio": "^1.6.0",
"cordova-plugin-firebase-lib": "^5.1.1",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-local-notification": "^0.9.0-beta.3",
"cordova-plugin-okhttp": "^2.0.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-wkwebview-engine": "^1.2.1",
"hammerjs": "^2.0.8",
"rxjs": "~6.5.1",
"rxjs-compat": "^6.5.5",
"signature_pad": "^3.0.0-beta.3",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
1 post - 1 participant
Read full topic