New App shows only blank screen on Android with Ionic 5, Angular 9 and Capacitor

Hey guys,

I’m totally new to Ionic and I’m already failing to get my first app running on an Android device or emulator. :slight_smile: I’m using Angular 9.1.11, Ionic 6.10.1 and Capacitor 2.2.0. I did not do more than basically follow the instructions from “build your first app” in the Angular section of the Ionic documentation except leaving out all the photo stuff. I basically did only the setup with the 3 tabs and then tried to deploy on Android. Deploying to Android means:

  • I run ionic build (no errors)
  • I run npx cap sync android
  • I run npx cap open android
  • In Android Studio, I start the App on an emulator (Pixel 2 Pie 9.0 - API 28) or my Android phone (Huawei RNE L21 - API 26)

Then the App starts with the Splash Screen, after the Splash Screen goes away there is only a blank screen. The Android Studio logs in the run tab don’t show any obvious problems. There are a couple of errors, but they don’t seem to be problematic (see below in this post). I also tried remote debugging with Chrome dev tools, which doesn’t show any errors in the console.
Running the App in the browser with ionic serve works by the way, I can see the 3 tabs, do changes with live reload, etc.

I tried to research the problem in the internet, and there is a ton of issues with this blank screen out there. But 98% seems to be with Cordova, not Capacitor, and I’ve found nothing about Ionic 6, only Ionic 3 and 4. Of course I tried a couple of standard things (clean project, invalidate caches) but most of the things I found are just not applicable to my case.

During my research I found another command to use instead of npx cap open android: ionic capacitor run android -l --external. When I do that, then everything works. The app loads as it should, on my phone and in the emulator as well. I compared the output in the run tab of Android Studio, and I don’t see any meaningful differences. But that could just be me having no idea about Ionic, Capacitor and Android as well. :slight_smile:
I can’t test on IPhone by the way, because I don’t have a Mac at hand. I’m developing on a Windows 10 computer if that matters.

Please find here the logs from Android Studio run tab in case they are of any interest.
First the ones from the app running on the emulator opening Android Studio with the npx cap open android command (where only blank screen occurs after Splash Screen):

Summary

07/01 18:20:14: Launching ‘app’ on Pixel 2 Pie 9.0 - API 28.
$ adb shell am start -n “io.ionic.starter/io.ionic.starter.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 21137 on device ‘emulator-5554’.
Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
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/o.ionic.starte: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
E/o.ionic.starte: Invalid ID 0x00000000.
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/WebViewFactory: Loading com.android.chrome version 69.0.3497.100 (code 349710017)
I/o.ionic.starte: The ClassLoaderContext is a special shared library.
I/cr_LibraryLoader: Time to load native libraries: 298 ms (timestamps 7252-7550)
E/cr_VariationsUtils: Failed reading seed file “/data/user/0/io.ionic.starter/app_webview/variations_seed”: /data/user/0/io.ionic.starter/app_webview/variations_seed (No such file or directory)
E/o.ionic.starte: Invalid ID 0x00000000.
E/o.ionic.starte: Invalid ID 0x00000000.
I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number “69.0.3497.100”, actual native library version number “69.0.3497.100”
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->(Landroid/content/Context;I)V (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
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
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
E/Capacitor: Unable to read file at path public/plugins
D/Capacitor: Loading app at http://localhost
I/o.ionic.starte: Background concurrent copying GC freed 17356(1925KB) AllocSpace objects, 8(188KB) LOS objects, 49% free, 1949KB/3MB, paused 1.328ms total 121.340ms
W/cr_media: Requires BLUETOOTH permission
D/HostConnection: HostConnection::get() New Host Connection established 0xd0132c30, tid 21221
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/Capacitor: Handling local request: http://localhost/
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1fec80: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1fec80: ver 2 0 (tinfo 0xd0004e90)
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
D/Capacitor: App resumed
D/OpenGLRenderer: HWUI GL Pipeline
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
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.
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/HostConnection: HostConnection::get() New Host Connection established 0xd01334f0, tid 21224
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without…
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1ff760: maj 2 min 0 rcv 2
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1ca460: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1ca460: ver 2 0 (tinfo 0xd0004e90)
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/HostConnection: createUnique: call
HostConnection::get() New Host Connection established 0xd0135c50, tid 21224
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
I/Choreographer: Skipped 54 frames! The application may be doing too much work on its main thread.
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 0
I/OpenGLRenderer: Davey! duration=1305ms; Flags=0, IntendedVsync=10969693584058, Vsync=10970593584022, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10970596573200, AnimationStart=10970596705700, PerformTraversalsStart=10970596834200, DrawStart=10970597981300, SyncQueued=10970602957600, SyncStart=10970615339200, IssueDrawCommandsStart=10970615940900, SwapBuffers=10970954187100, FrameCompleted=10971011035200, DequeueBufferDuration=95000, QueueBufferDuration=425000,
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
I/OpenGLRenderer: Davey! duration=1424ms; Flags=0, IntendedVsync=10969693584058, Vsync=10970593584022, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10970596573200, AnimationStart=10970596705700, PerformTraversalsStart=10970596834200, DrawStart=10971011930000, SyncQueued=10971012441800, SyncStart=10971016488500, IssueDrawCommandsStart=10971040292400, SwapBuffers=10971066299000, FrameCompleted=10971122240100, DequeueBufferDuration=1534000, QueueBufferDuration=1162000,
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
W/cr_CrashFileManager: /data/user/0/io.ionic.starter/cache/WebView/Crash Reports does not exist or is not a directory
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
I/OpenGLRenderer: Davey! duration=795ms; Flags=0, IntendedVsync=10971188761458, Vsync=10971605428108, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10971608283600, AnimationStart=10971608416900, PerformTraversalsStart=10971614441500, DrawStart=10971615170800, SyncQueued=10971617870000, SyncStart=10971621558200, IssueDrawCommandsStart=10971621846100, SwapBuffers=10971950813600, FrameCompleted=10971988013600, DequeueBufferDuration=860000, QueueBufferDuration=907000,
D/Capacitor: Handling local request: http://localhost/assets/icon/favicon.png
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
D/Capacitor: SplashScreen was automatically hidden after the launch timeout. You should call SplashScreen.hide() as soon as your web app is loaded (or increase the timeout).Read more at https://capacitor.ionicframework.com/docs/apis/splash-screen/#hiding-the-splash-screen
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)
D/EGL_emulation: eglMakeCurrent: 0xeb1ff760: ver 2 0 (tinfo 0xd01624b0)

edit: Regarding the version of Ionic, I’m a bit confused now… The release notes of Ionic say the latest version is 5.2.3. But when I enter ionic --version in the console, it prompts 6.10.1. When I enter npx --version, it promts 6.4.1. That doesn’t make sense to me either! :slight_smile:

… and here the logs for the case where Android Studio was opened after ionic capacitor run android -l --external and everything works:

Summary

07/01 18:18:08: Launching ‘app’ on Pixel 2 Pie 9.0 - API 28.
$ adb shell am start -n “io.ionic.starter/io.ionic.starter.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 20732 on device ‘emulator-5554’.
Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
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/o.ionic.starte: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
W/o.ionic.starte: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
E/o.ionic.starte: Invalid ID 0x00000000.
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/WebViewFactory: Loading com.android.chrome version 69.0.3497.100 (code 349710017)
I/o.ionic.starte: The ClassLoaderContext is a special shared library.
I/cr_LibraryLoader: Time to load native libraries: 101 ms (timestamps 404-505)
E/cr_VariationsUtils: Failed reading seed file “/data/user/0/io.ionic.starter/app_webview/variations_seed”: /data/user/0/io.ionic.starter/app_webview/variations_seed (No such file or directory)
E/o.ionic.starte: Invalid ID 0x00000000.
E/o.ionic.starte: Invalid ID 0x00000000.
I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number “69.0.3497.100”, actual native library version number “69.0.3497.100”
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->(Landroid/content/Context;I)V (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
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
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
E/Capacitor: Unable to read file at path public/plugins
D/Capacitor: Loading app at http://192.168.2.104:8100
W/cr_media: Requires BLUETOOTH permission
D/HostConnection: HostConnection::get() New Host Connection established 0xd0037610, tid 20818
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1fec80: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1fec80: ver 2 0 (tinfo 0xeb1d2010)
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
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
D/Capacitor: App resumed
D/OpenGLRenderer: HWUI GL Pipeline
W/VideoCapabilities: Unrecognized profile 4 for video/hevc
W/o.ionic.starte: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1ffd60: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1ffd60: ver 2 0 (tinfo 0xeb1d2010)
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/HostConnection: HostConnection::get() New Host Connection established 0xd00fc9f0, tid 20823
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without…
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1fe620: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xd00fe840, tid 20823
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
I/Choreographer: Skipped 67 frames! The application may be doing too much work on its main thread.
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 0
I/OpenGLRenderer: Davey! duration=1646ms; Flags=0, IntendedVsync=10842510765511, Vsync=10843627432133, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10843644169100, AnimationStart=10843644350600, PerformTraversalsStart=10843654611000, DrawStart=10843655418900, SyncQueued=10843662891400, SyncStart=10843664346100, IssueDrawCommandsStart=10843664504100, SwapBuffers=10843959251400, FrameCompleted=10844158524300, DequeueBufferDuration=485000, QueueBufferDuration=764000,
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
I/OpenGLRenderer: Davey! duration=1868ms; Flags=0, IntendedVsync=10842510765511, Vsync=10843627432133, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10843644169100, AnimationStart=10843644350600, PerformTraversalsStart=10843654611000, DrawStart=10844159513900, SyncQueued=10844160200100, SyncStart=10844162531400, IssueDrawCommandsStart=10844188105500, SwapBuffers=10844229290400, FrameCompleted=10844381460200, DequeueBufferDuration=1052000, QueueBufferDuration=1142000,
I/Choreographer: Skipped 52 frames! The application may be doing too much work on its main thread.
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
I/OpenGLRenderer: Davey! duration=944ms; Flags=0, IntendedVsync=10843673582582, Vsync=10844540249214, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10844551559800, AnimationStart=10844551713900, PerformTraversalsStart=10844561398300, DrawStart=10844562603400, SyncQueued=10844564299100, SyncStart=10844566168900, IssueDrawCommandsStart=10844566321900, SwapBuffers=10844607622500, FrameCompleted=10844619755800, DequeueBufferDuration=623000, QueueBufferDuration=857000,
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
I/OpenGLRenderer: Davey! duration=1176ms; Flags=0, IntendedVsync=10843673582582, Vsync=10844540249214, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10844551559800, AnimationStart=10844551713900, PerformTraversalsStart=10844561398300, DrawStart=10844623415800, SyncQueued=10844625344400, SyncStart=10844634898900, IssueDrawCommandsStart=10844635094500, SwapBuffers=10844778039500, FrameCompleted=10844859775000, DequeueBufferDuration=1069000, QueueBufferDuration=8526000,
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
I/OpenGLRenderer: Davey! duration=1303ms; Flags=0, IntendedVsync=10843673582582, Vsync=10844540249214, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10844551559800, AnimationStart=10844551713900, PerformTraversalsStart=10844561398300, DrawStart=10844862589500, SyncQueued=10844862654800, SyncStart=10844865970900, IssueDrawCommandsStart=10844866099900, SwapBuffers=10844867927000, FrameCompleted=10844980175500, DequeueBufferDuration=1482000, QueueBufferDuration=11538000,
W/cr_CrashFileManager: /data/user/0/io.ionic.starter/cache/WebView/Crash Reports does not exist or is not a directory
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
I/OpenGLRenderer: Davey! duration=720ms; Flags=0, IntendedVsync=10844570531419, Vsync=10845003864735, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10845012652100, AnimationStart=10845012811500, PerformTraversalsStart=10845031791000, DrawStart=10845032369500, SyncQueued=10845036415700, SyncStart=10845040763100, IssueDrawCommandsStart=10845040943100, SwapBuffers=10845174593000, FrameCompleted=10845295031500, DequeueBufferDuration=2995000, QueueBufferDuration=1071000,
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
I/OpenGLRenderer: Davey! duration=780ms; Flags=0, IntendedVsync=10844570531419, Vsync=10845003864735, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10845012652100, AnimationStart=10845012811500, PerformTraversalsStart=10845031791000, DrawStart=10845319396900, SyncQueued=10845319485700, SyncStart=10845329668300, IssueDrawCommandsStart=10845329804700, SwapBuffers=10845336366600, FrameCompleted=10845361312300, DequeueBufferDuration=109000, QueueBufferDuration=428000,
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
I/OpenGLRenderer: Davey! duration=900ms; Flags=0, IntendedVsync=10845056364182, Vsync=10845356364170, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10845366077500, AnimationStart=10845366208200, PerformTraversalsStart=10845391641000, DrawStart=10845392192400, SyncQueued=10845394019500, SyncStart=10845414747900, IssueDrawCommandsStart=10845414935100, SwapBuffers=10845967200000, FrameCompleted=10845977501600, DequeueBufferDuration=473000, QueueBufferDuration=496000,
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
I/OpenGLRenderer: Davey! duration=845ms; Flags=0, IntendedVsync=10845504820382, Vsync=10845971487030, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10845984645800, AnimationStart=10845984723000, PerformTraversalsStart=10845999535000, DrawStart=10845999946100, SyncQueued=10846001678000, SyncStart=10846173146900, IssueDrawCommandsStart=10846177930600, SwapBuffers=10846508206100, FrameCompleted=10846521709900, DequeueBufferDuration=925000, QueueBufferDuration=1235000,
I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
I/OpenGLRenderer: Davey! duration=1623ms; Flags=0, IntendedVsync=10846028054215, Vsync=10846544720861, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10846546240500, AnimationStart=10846546348300, PerformTraversalsStart=10846548794400, DrawStart=10846549187500, SyncQueued=10846550043000, SyncStart=10846551326400, IssueDrawCommandsStart=10846553631000, SwapBuffers=10847634359800, FrameCompleted=10847652923700, DequeueBufferDuration=2987000, QueueBufferDuration=4620000,
I/Choreographer: Skipped 55 frames! The application may be doing too much work on its main thread.
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
I/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 72286 - Msg: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
I/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 100707 - Msg: Ionic Native: deviceready event fired after 550 ms
W/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 101012 - Msg: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
W/Capacitor/Console: File: took out link here because only 10 are allowed per post - Line 101018 - Msg: Install the StatusBar plugin: ‘ionic cordova plugin add cordova-plugin-statusbar’
W/Capacitor/Console: File: took out link here because only 10 are allowed per post - Line 101012 - Msg: Native: tried calling SplashScreen.hide, but the SplashScreen plugin is not installed.
W/Capacitor/Console: File: took out link here because only 10 are allowed per post - Line 101018 - Msg: Install the SplashScreen plugin: ‘ionic cordova plugin add cordova-plugin-splashscreen’
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
I/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 132701 - Msg: [WDS] Live Reloading enabled.
W/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 132775 - Msg: [WDS] Warnings while compiling.
W/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 132784 - Msg: C:\Users\Jonas\source\repos\Ionic_Playground\start-app\src\test.ts is part of the TypeScript compilation but it’s unused.
Add only entry points to the ‘files’ or ‘include’ properties in your tsconfig.
W/Capacitor/Console: File: http://192.168.2.104:8100/vendor.js - Line 132784 - Msg: C:\Users\Jonas\source\repos\Ionic_Playground\start-app\src\environments\environment.prod.ts is part of the TypeScript compilation but it’s unused.
Add only entry points to the ‘files’ or ‘include’ properties in your tsconfig.
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 3 (3) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 5 0
V/Capacitor/Plugin: To native (Capacitor plugin): callbackId: 93699950, pluginId: App, methodName: addListener
V/Capacitor: callback: 93699950, pluginId: App, methodName: addListener, methodData: {“eventName”:“backButton”}
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
D/Capacitor: SplashScreen was automatically hidden after the launch timeout. You should call SplashScreen.hide() as soon as your web app is loaded (or increase the timeout).Read more at https://capacitor.ionicframework.com/docs/apis/splash-screen/#hiding-the-splash-screen
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)
D/EGL_emulation: eglMakeCurrent: 0xeb1fe620: ver 2 0 (tinfo 0xd0132330)

Rest assured, you are about the millionth person to bang into this wall. To use the analogy of a moon mission, the Ionic CLI is the booster rocket that gets the spaceship out of Earth gravity and then crashes back to Earth. The Ionic Framework is the spaceship that the astronauts hang out in. They have different versioning.

The CLI version is what’s relevant if you’re having trouble building your app, whereas the framework version is what’s relevant if you’re having trouble once it’s built. You can see both if you run ionic info inside the project directory.

As for your proximate problem, these two lines jump out at me:

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

Did you add Firebase to this app, or did that come along from the Ionic starter? Either way, it seems it’s not set up properly.

Ahh, okay, that makes that version stuff clearer to me! I’m on Ionic Framework 5.2.2 then! Thanks!

Regarding Firebase, I didn’t add it myself for sure, it must have come with the Ionic starter. Anyway, when I run the App with ionic capacitor run android -l --external, the same 2 messages appear but the App does work. Is it still worth to have a look into this direction then?

Thanks for your support!

edit: I looked into the Ionic Firebase documentation here which says “Capacitor not compatible”. Does that mean I should remove Firebase? Don’t know what it’s good for anyways. :slight_smile:

I now managed to get rid of Firebase from the App. Seems like it came in with Capacitor Push Notifactions and I just took out those.
So now no Firebase related error messages appear anymore, still the problem isn’t fixed. Find below the new console output.

Any other ideas?

Summary

07/02 11:57:29: Launching ‘app’ on Pixel 2 Pie 9.0 - API 28.
$ adb shell am start -n “io.ionic.starter/io.ionic.starter.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 11714 on device ‘pixel_2_pie_9_0_-_api_28 [emulator-5554]’.
Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
W/o.ionic.starte: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
E/ConfigXmlParser: res/xml/config.xml is missing!
E/o.ionic.starte: Invalid ID 0x00000000.
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
W/o.ionic.starte: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/WebViewFactory: Loading com.android.chrome version 69.0.3497.100 (code 349710017)
I/o.ionic.starte: The ClassLoaderContext is a special shared library.
I/cr_LibraryLoader: Time to load native libraries: 58 ms (timestamps 2049-2107)
E/cr_VariationsUtils: Failed reading seed file “/data/user/0/io.ionic.starter/app_webview/variations_seed”: /data/user/0/io.ionic.starter/app_webview/variations_seed (No such file or directory)
E/o.ionic.starte: Invalid ID 0x00000000.
E/o.ionic.starte: Invalid ID 0x00000000.
I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number “69.0.3497.100”, actual native library version number “69.0.3497.100”
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->(Landroid/content/Context;I)V (light greylist, reflection)
W/o.ionic.starte: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
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
I/o.ionic.starte: Background concurrent copying GC freed 8646(2MB) AllocSpace objects, 4(80KB) LOS objects, 49% free, 1667KB/3MB, paused 1.342ms total 249.917ms
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
D/Capacitor: Registering plugin: Photos
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
E/Capacitor: Unable to read file at path public/plugins
D/Capacitor: Loading app at http://localhost
W/cr_media: Requires BLUETOOTH permission
D/HostConnection: HostConnection::get() New Host Connection established 0xd0129cd0, tid 11816
D/Capacitor: Handling local request: http://localhost/
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1c9440: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1c9440: ver 2 0 (tinfo 0xd00d5db0)
I/o.ionic.starte: Background concurrent copying GC freed 10647(845KB) AllocSpace objects, 17(712KB) LOS objects, 49% free, 2MB/4MB, paused 3.387ms total 244.803ms
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
D/Capacitor: App resumed
D/OpenGLRenderer: HWUI GL Pipeline
W/VideoCapabilities: Unrecognized profile 4 for video/hevc
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/HostConnection: HostConnection::get() New Host Connection established 0xd012a4f0, tid 11818
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without…
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1c98c0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
E/chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xeb1ff1c0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeb1ff1c0: ver 2 0 (tinfo 0xd00d5db0)
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xd012bf80, tid 11818
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 0
I/OpenGLRenderer: Davey! duration=744ms; Flags=0, IntendedVsync=28104261498178, Vsync=28104694831494, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=28104703734740, AnimationStart=28104703873340, PerformTraversalsStart=28104704114640, DrawStart=28104705741240, SyncQueued=28104711015440, SyncStart=28104716324940, IssueDrawCommandsStart=28104716493140, SwapBuffers=28104962252540, FrameCompleted=28105010942840, DequeueBufferDuration=910000, QueueBufferDuration=1355000,
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
I/OpenGLRenderer: Davey! duration=834ms; Flags=0, IntendedVsync=28104261498178, Vsync=28104694831494, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=28104703734740, AnimationStart=28104703873340, PerformTraversalsStart=28104704114640, DrawStart=28105012728340, SyncQueued=28105013453440, SyncStart=28105015615140, IssueDrawCommandsStart=28105038271040, SwapBuffers=28105052290640, FrameCompleted=28105098656440, DequeueBufferDuration=583000, QueueBufferDuration=1110000,
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
W/cr_CrashFileManager: /data/user/0/io.ionic.starter/cache/WebView/Crash Reports does not exist or is not a directory
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
I/OpenGLRenderer: Davey! duration=1012ms; Flags=0, IntendedVsync=28105147419252, Vsync=28105564085902, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=28105575842840, AnimationStart=28105575901940, PerformTraversalsStart=28105580107640, DrawStart=28105581185640, SyncQueued=28105582714540, SyncStart=28105587302240, IssueDrawCommandsStart=28105590610040, SwapBuffers=28106113644640, FrameCompleted=28106164595440, DequeueBufferDuration=2112000, QueueBufferDuration=1534000,
I/Choreographer: Skipped 34 frames! The application may be doing too much work on its main thread.
D/Capacitor: Handling local request: http://localhost/assets/icon/favicon.png
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 5 0
I/OpenGLRenderer: Davey! duration=899ms; Flags=0, IntendedVsync=28105608837577, Vsync=28106175504221, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=28106178645840, AnimationStart=28106178749340, PerformTraversalsStart=28106182843140, DrawStart=28106183208240, SyncQueued=28106184584640, SyncStart=28106518877440, IssueDrawCommandsStart=28106518965840, SwapBuffers=28106836934340, FrameCompleted=28106843038240, DequeueBufferDuration=476000, QueueBufferDuration=640000,
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
setVertexArrayObject: set vao to 0 (0) 5 0
D/Capacitor: SplashScreen was automatically hidden after the launch timeout. You should call SplashScreen.hide() as soon as your web app is loaded (or increase the timeout).Read more at https://capacitor.ionicframework.com/docs/apis/splash-screen/#hiding-the-splash-screen
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)
D/EGL_emulation: eglMakeCurrent: 0xeb1c98c0: ver 2 0 (tinfo 0xd0157570)

Yay, I found the solution myself… After the very first build of the ionic project, there was an error message that index.html was not found in the www folder. The www folder didn’t exist at all, but there was the src folder of angular which contained the index.html file. So in the capacitor.config.json, I changed the webDir folder from www to src. This made the build succeed and I could go on.
Later on the www folder was created (don’t know in which step…) and it also contains the index.html. So now I switched back the webDir folder to www and now it works!

Mm not really the “solution” here. The webDir should be set to what ever the output directory is. So if you’re building to www or dist, or something else, it should be set there.

Ionic angular apps are set to output to www, so the webDir should be set to that.

Now if you changed the output directory, that would mean the webDir should be updated. But a fresh project should jsut need to be built using ionic build --prod and assets copied over with npx cap copy or npx cap sync

2 Likes

The thing is that I didn’t even understand what the webDir is for. I just did the very basics which was creating a new app with ionic start test-app tabs --type=angular --capacitor and afterwards running ionic build right away. Then an error message was prompted that no index.html was found in my webDir folder, because the www folder wasn’t even populated at that point. At this point I thought the solution is to just change the webDir to src, as there is an index.html file too and that solved my problems for that moment. Maybe that’s a trap that other beginners can walk into in the future too.

It sounds like you have an error in your setup somewhere.

Here in this demo video, i created a fresh project, and after I ran build, it generated the correct www folder with the content needed.

The webDir is the folder that the web app gets build built to