Replies: 3 comments
-
Sorry for the initial log pollution - updated with attached log file. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Ok, so I think I've ruled out #1 as causing/contributing to the problem by following suggestion in following post to increase minSdkVersion to 28 (probably not acceptable for production, but at least bypasses the problem for now). Still digging for ideas ... |
Beta Was this translation helpful? Give feedback.
-
Updated Android logcat file attached after changing to minSdk 28. 2020-08-27 15:38:02.461 26124-26124/com.nevco.one.controller W/FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project. 2020-08-27 15:38:02.558 26124-26124/com.nevco.one.controller E/.one.controlle: Invalid ID 0x00000000. 2020-08-27 15:38:02.669 26124-26187/com.nevco.one.controller E/chromium: [ERROR:devtools_http_handler.cc(292)] Cannot start http server for devtools. Stop devtools. 2020-08-27 15:38:02.811 26124-26124/com.nevco.one.controller E/Capacitor: Unable to read file at path public/plugins 2020-08-27 15:38:02.872 26124-26171/com.nevco.one.controller E/cr_ApiBridge: Failed to init handler: Attempt to invoke virtual method 'java.lang.reflect.Constructor java.lang.Class.getDeclaredConstructor(java.lang.Class[])' on a null object reference 2020-08-27 15:38:02.874 1915-4549/system_process W/ActivityManager: Unable to start service Intent { act=android.support.customtabs.action.CustomTabsService pkg=com.android.chrome } U=0: not found 2020-08-27 15:38:03.125 26124-26179/com.nevco.one.controller E/Capacitor: Unable to open asset URL: http://localhost/controller/styles.a7868ffa93e857bc46bc.css |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to convert an existing Angular 9.1 / Nx 9.6 / Node 10.16 PWA app to a Capacitor 2.4 app.
I used @nxtend/capacitor to create a new "apps/controller-cap" based on our existing "apps/controller" PWA app.
The Nx and Capacitor CLI commands seemed to work fine (at least after upgrading from Nx 9.0 to 9.6), but when I try to launch the Android app in the Android simulator (with no changes to Android project generated by Capacitor), I get a splash screen followed by a blank screen.
Logcat shows the following 2 errors - not sure which is the critical failure, or both :
I/zygote: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
E/Capacitor: Unable to open asset URL: http://localhost/controller/polyfills-es2015.8833204e9116bec07d89.js
I'm an experienced web and Android developer, with some Cordova experience, but brand new to Capacitor.
Any guidance on next steps would be much appreciated - hoping it's a simple/known issue.
Thanks.
android_capacitor_logcat.txt
Beta Was this translation helpful? Give feedback.
All reactions