For my app, I am using Ionic 5, Angular 11, Firebase, Capacitor.| My app was working on android before the update. Angular 11 came out, and my project was running on Angular 9. So I carefully followed instructions on the Angular website about updating Angular. I updated Angular and got a ton of new errors saying my dependencies old. I deleted them and re-installed them. Then, my app started to work on a web browser, and I didn’t test it on the phone. I coded some stuff, and it is working well on the web without any error. But when I tried to run it on android, it is not working. I also commented on the new code to test if it is a problem, but it seems the new code is not related to it. Below is all the errors on Android Studio
2021-02-18 21:02:00.640 19834-19834/com.mvider E/Zygote: isWhitelistProcess - Process is Whitelisted
2021-02-18 21:02:00.642 19834-19834/com.mvider E/Zygote: accessInfo : 1
2021-02-18 21:02:00.678 19834-19834/com.mvider E/com.mvider: Unknown bits set in runtime_flags: 0x8000
2021-02-18 21:02:01.403 19834-19834/com.mvider E/com.mvider: Invalid ID 0x00000000.
2021-02-18 21:02:01.655 19834-19834/com.mvider E/com.mvider: Invalid ID 0x00000000.
2021-02-18 21:02:01.655 19834-19834/com.mvider E/com.mvider: Invalid ID 0x00000000.
2021-02-18 21:02:01.789 19834-19834/com.mvider E/chromium: [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.mvider/cache/WebView/Crashpad: No such file or directory (2)
2021-02-18 21:02:03.914 19834-19834/com.mvider E/Capacitor/Console: File: capacitor-runtime.js - Line 361 - Msg: TypeError: fn.bind is not a function
2021-02-18 21:02:03.922 19834-22995/com.mvider E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught TypeError: fn.bind is not a function","url":"http://localhost/vendor-es2015.js","line":9753,"col":15,"errorObject":"{}"}}
2021-02-18 21:02:03.928 19834-19834/com.mvider E/Capacitor/Console: File: http://localhost/vendor-es2015.js - Line 9753 - Msg: Uncaught TypeError: fn.bind is not a function
@mhartington facing a similar issue but I haven’t updated the project just the global version, I have no idea what to debug because just like above, it’s working fine on Web but not on Native. Here’s the log from my Android Studio:
2021-02-19 23:36:58.174 562-562/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2021-02-19 23:36:58.175 562-562/? E/Zygote: accessInfo : 1
2021-02-19 23:36:58.230 562-562/? E/om.dn.honeycoi: Unknown bits set in runtime_flags: 0x8000
2021-02-19 23:36:58.872 562-562/com.dn.honeycoin E/om.dn.honeycoi: Invalid ID 0x00000000.
2021-02-19 23:36:59.159 562-562/com.dn.honeycoin E/om.dn.honeycoi: Invalid ID 0x00000000.
2021-02-19 23:36:59.160 562-562/com.dn.honeycoin E/om.dn.honeycoi: Invalid ID 0x00000000.
2021-02-19 23:37:06.622 562-700/com.dn.honeycoin E/OpenGLRenderer: ReliableSurface: perform returned an error
2021-02-19 23:37:06.701 562-562/com.dn.honeycoin E/ViewRootImpl: sendUserActionEvent() mView returned.
2021-02-19 23:41:59.300 562-562/com.dn.honeycoin E/ViewRootImpl@5b5a774[MainActivity]: Surface is not valid.
2021-02-19 23:42:01.745 562-562/com.dn.honeycoin E/ViewRootImpl@5b5a774[MainActivity]: Surface is not valid.
2021-02-19 23:45:39.700 562-562/com.dn.honeycoin E/ViewRootImpl@5b5a774[MainActivity]: Surface is not valid.
2021-02-19 23:45:42.259 562-700/com.dn.honeycoin E/OpenGLRenderer: ReliableSurface: perform returned an error
2021-02-19 23:50:44.195 562-700/com.dn.honeycoin E/OpenGLRenderer: ReliableSurface: perform returned an error
Also - I’ve implemented the suggested workarounds above as well, still nothing.
Please help - sort of urgent as this build contains fixes for the production build but I can’t ship because of this issue.