Ionic 5 capacitor blank page ( www/index.html content displayed )

Greetings to all;

I created an app on ionic 5 with capacitor.
The problem is that when I synchronize the project with android studio and launch the emulator, I only see the content of the www/index.html page. I know this because after several attempts where the emulator shows me a blank page, I tried to put a text in the file www/index.html and it’s this text that was displayed after the splash screen…

Please help me…

Every time I’ve encountered this, it’s been an uncaught exception at startup. Attach a debugger and check the console.

Here are the contents of the console when I use the debugger

08/14 14:05:26: Launching ‘app’ on samsung SM-G9550.
$ adb shell am start -n “com.smsplateform.torskint/com.smsplateform.torskint.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.smsplateform.torskint.test | com.smsplateform.torskint
Waiting for application to come online: com.smsplateform.torskint.test | com.smsplateform.torskint
Waiting for application to come online: com.smsplateform.torskint.test | com.smsplateform.torskint
Connecting to com.smsplateform.torskint
Connected to process 3828 on device ‘samsung-sm_g9550-127.0.0.1:62026’.
Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
I/art: Debugger is active
I/System.out: Debugger has connected
waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: debugger has settled (1344)
W/System: ClassLoader referenced unknown path: /data/app/com.smsplateform.torskint-1/lib/x86
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.
I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
I/art: 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;
at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2436)
at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:779)
at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:659)
at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:552)
at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List, org.json.JSONObject) (BridgeActivity.java:60)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List) (BridgeActivity.java:48)
at void com.smsplateform.torskint.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:16)
at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6692)
at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1118)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2621)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2729)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1480)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6198)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:891)
at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:781)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.view.View$OnUnhandledKeyEventListener” on path: DexPathList[[zip file “/data/app/com.smsplateform.torskint-1/base.apk”],nativeLibraryDirectories=[/data/app/com.smsplateform.torskint-1/lib/x86, /system/lib, /vendor/lib]]
at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2436)
at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:779)
at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:659)
at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:552)
at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List, org.json.JSONObject) (BridgeActivity.java:60)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List) (BridgeActivity.java:48)
at void com.smsplateform.torskint.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:16)
at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6692)
at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1118)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2621)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2729)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1480)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6198)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:891)
at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:781)
W/System: ClassLoader referenced unknown path: /system/app/webview/lib/x86
D/ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/x86:/system/app/webview/webview.apk!/lib/x86:/system/lib:/vendor/lib for namespace 0xb7607090
I/WebViewFactory: Loading com.google.android.webview version 75.0.3770.143 (code 377014315)
I/cr_LibraryLoader: Time to load native libraries: 4 ms (timestamps 4185-4189)
W/System: ClassLoader referenced unknown path:
ClassLoader referenced unknown path: /system/app/webview/lib/x86
D/ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/x86:/system/app/webview/webview.apk!/lib/x86:/system/lib:/vendor/lib for namespace 0xb76070d0
W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
Invalid package identifier when getting bag for resource number 0x00000000
W/chromium: [0814/140606.752041:WARNING:library_prefetcher.cc(330)] Code not ordered, madvise optimization skipped
I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number “75.0.3770.143”, actual native library version number “75.0.3770.143”
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
E/chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.smsplateform.torskint/cache/WebView/Crashpad: No such file or directory (2)
[ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.smsplateform.torskint/cache/WebView/Crashpad: No such file or directory (2)
D/Capacitor: Starting BridgeActivity
D/Capacitor: Registering plugin: App
D/Capacitor: Registering plugin: Accessibility
D/Capacitor: Registering plugin: BackgroundTask
D/Capacitor: Registering plugin: Browser
D/Capacitor: Registering plugin: Camera
D/Capacitor: Registering plugin: Clipboard
D/Capacitor: Registering plugin: Device
D/Capacitor: Registering plugin: LocalNotifications
D/Capacitor: Registering plugin: Filesystem
D/Capacitor: Registering plugin: Geolocation
D/Capacitor: Registering plugin: Haptics
D/Capacitor: Registering plugin: Keyboard
D/Capacitor: Registering plugin: Modals
D/Capacitor: Registering plugin: Network
D/Capacitor: Registering plugin: Permissions
I/art: Do partial code cache collection, code=29KB, data=26KB
I/art: After code cache collection, code=29KB, data=26KB
Increasing code cache capacity to 128KB
D/Capacitor: Registering plugin: Photos
D/Capacitor: Registering plugin: PushNotifications
D/Capacitor: Registering plugin: Share
D/Capacitor: Registering plugin: SplashScreen
D/Capacitor: Registering plugin: StatusBar
D/Capacitor: Registering plugin: Storage
D/Capacitor: Registering plugin: Toast
D/Capacitor: Registering plugin: WebView
I/art: Do partial code cache collection, code=61KB, data=46KB
I/art: After code cache collection, code=60KB, data=46KB
Increasing code cache capacity to 256KB
D/Capacitor: Loading app at http://localhost
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
D/: HostConnection::get() New Host Connection established 0xac88e5f0, tid 3891
W/cr_media: Requires BLUETOOTH permission
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
D/Capacitor: Handling local request: http://localhost/
D/Capacitor: App started
D/Capacitor/App: Firing change: true
V/Capacitor/App: Notifying listeners for event appStateChange
D/Capacitor/App: No listeners found for event appStateChange
E/Capacitor/Browser: Error binding to custom tabs service
D/Capacitor: App resumed
D/: static HostConnection *HostConnection::createUnique(): call
HostConnection::get() New Host Connection established 0x9607af00, tid 3828
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
W/AudioCapabilities: Unsupported mime audio/ac3
W/AudioCapabilities: Unsupported mime audio/alac
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/: HostConnection::get() New Host Connection established 0x95cddee0, tid 3900
W/AudioCapabilities: Unsupported mime audio/x-ape
W/AudioCapabilities: Unsupported mime audio/ffmpeg
W/AudioCapabilities: Unsupported mime audio/dts
W/AudioCapabilities: Unsupported mime audio/mpeg-L2
W/AudioCapabilities: Unsupported mime audio/vnd.rn-realaudio
W/AudioCapabilities: Unsupported mime audio/x-ms-wma
W/VideoCapabilities: Unsupported mime video/divx
W/VideoCapabilities: Unsupported mime video/x-flv
W/VideoCapabilities: Unsupported mime video/vnd.rn-realvideo
W/VideoCapabilities: Unsupported mime video/vc1
W/VideoCapabilities: Unsupported mime video/ffmpeg
W/VideoCapabilities: Unsupported mime video/x-ms-wmv
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
I/art: Debugger is active
I/System.out: Debugger has connected
waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: waiting for debugger to settle…
I/System.out: debugger has settled (1344)
W/System: ClassLoader referenced unknown path: /data/app/com.smsplateform.torskint-1/lib/x86
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.
I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
I/art: 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;
at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2436)
at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:779)
at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:659)
at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:552)
at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List, org.json.JSONObject) (BridgeActivity.java:60)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List) (BridgeActivity.java:48)
at void com.smsplateform.torskint.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:16)
at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6692)
at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1118)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2621)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2729)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1480)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6198)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:891)
at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:781)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.view.View$OnUnhandledKeyEventListener” on path: DexPathList[[zip file “/data/app/com.smsplateform.torskint-1/base.apk”],nativeLibraryDirectories=[/data/app/com.smsplateform.torskint-1/lib/x86, /system/lib, /vendor/lib]]
at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2436)
at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:779)
at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:659)
at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:552)
at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List, org.json.JSONObject) (BridgeActivity.java:60)
at void com.getcapacitor.BridgeActivity.init(android.os.Bundle, java.util.List) (BridgeActivity.java:48)
at void com.smsplateform.torskint.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:16)
at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6692)
at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1118)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2621)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2729)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1480)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6198)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:891)
at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:781)
W/System: ClassLoader referenced unknown path: /system/app/webview/lib/x86
D/ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/x86:/system/app/webview/webview.apk!/lib/x86:/system/lib:/vendor/lib for namespace 0xb7607090
I/WebViewFactory: Loading com.google.android.webview version 75.0.3770.143 (code 377014315)
I/cr_LibraryLoader: Time to load native libraries: 4 ms (timestamps 4185-4189)
W/System: ClassLoader referenced unknown path:
ClassLoader referenced unknown path: /system/app/webview/lib/x86
D/ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/x86:/system/app/webview/webview.apk!/lib/x86:/system/lib:/vendor/lib for namespace 0xb76070d0
W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
Invalid package identifier when getting bag for resource number 0x00000000
W/chromium: [0814/140606.752041:WARNING:library_prefetcher.cc(330)] Code not ordered, madvise optimization skipped
I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number “75.0.3770.143”, actual native library version number “75.0.3770.143”
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
E/chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.smsplateform.torskint/cache/WebView/Crashpad: No such file or directory (2)
[ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.smsplateform.torskint/cache/WebView/Crashpad: No such file or directory (2)
D/Capacitor: Starting BridgeActivity
D/Capacitor: Registering plugin: App
D/Capacitor: Registering plugin: Accessibility
D/Capacitor: Registering plugin: BackgroundTask
D/Capacitor: Registering plugin: Browser
D/Capacitor: Registering plugin: Camera
D/Capacitor: Registering plugin: Clipboard
D/Capacitor: Registering plugin: Device
D/Capacitor: Registering plugin: LocalNotifications
D/Capacitor: Registering plugin: Filesystem
D/Capacitor: Registering plugin: Geolocation
D/Capacitor: Registering plugin: Haptics
D/Capacitor: Registering plugin: Keyboard
D/Capacitor: Registering plugin: Modals
D/Capacitor: Registering plugin: Network
D/Capacitor: Registering plugin: Permissions
I/art: Do partial code cache collection, code=29KB, data=26KB
I/art: After code cache collection, code=29KB, data=26KB
Increasing code cache capacity to 128KB
D/Capacitor: Registering plugin: Photos
D/Capacitor: Registering plugin: PushNotifications
D/Capacitor: Registering plugin: Share
D/Capacitor: Registering plugin: SplashScreen
D/Capacitor: Registering plugin: StatusBar
D/Capacitor: Registering plugin: Storage
D/Capacitor: Registering plugin: Toast
D/Capacitor: Registering plugin: WebView
I/art: Do partial code cache collection, code=61KB, data=46KB
I/art: After code cache collection, code=60KB, data=46KB
Increasing code cache capacity to 256KB
D/Capacitor: Loading app at http://localhost
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
D/: HostConnection::get() New Host Connection established 0xac88e5f0, tid 3891
W/cr_media: Requires BLUETOOTH permission
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
D/Capacitor: Handling local request: http://localhost/
D/Capacitor: App started
D/Capacitor/App: Firing change: true
V/Capacitor/App: Notifying listeners for event appStateChange
D/Capacitor/App: No listeners found for event appStateChange
E/Capacitor/Browser: Error binding to custom tabs service
D/Capacitor: App resumed
D/: static HostConnection *HostConnection::createUnique(): call
HostConnection::get() New Host Connection established 0x9607af00, tid 3828
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
W/AudioCapabilities: Unsupported mime audio/ac3
W/AudioCapabilities: Unsupported mime audio/alac
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/: HostConnection::get() New Host Connection established 0x95cddee0, tid 3900
W/AudioCapabilities: Unsupported mime audio/x-ape
W/AudioCapabilities: Unsupported mime audio/ffmpeg
W/AudioCapabilities: Unsupported mime audio/dts
W/AudioCapabilities: Unsupported mime audio/mpeg-L2
W/AudioCapabilities: Unsupported mime audio/vnd.rn-realaudio
W/AudioCapabilities: Unsupported mime audio/x-ms-wma
W/VideoCapabilities: Unsupported mime video/divx
W/VideoCapabilities: Unsupported mime video/x-flv
W/VideoCapabilities: Unsupported mime video/vnd.rn-realvideo
W/VideoCapabilities: Unsupported mime video/vc1
W/VideoCapabilities: Unsupported mime video/ffmpeg
W/VideoCapabilities: Unsupported mime video/x-ms-wmv
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
glUtilsParamSize: unknow param 0x000088ef
I/Capacitor/Console: File: capacitor-runtime.js - Line 2397 - Msg: onscript loading complete
D/Capacitor: Handling local request: http://localhost/favicon.ico
Connected to the target VM, address: ‘localhost:8600’, transport: ‘socket’

The solution is quite simple:

do: npm run build
before: npx cap copy