Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

White screen when debugging/building from Android Studio

$
0
0

Hi!
I’ve a strange issue when debugging my application from Android Studio using emulator or building APK and installing the APK to my phone. Only white screen appears after the splash screen. No crashing, just white screen.

What’s interesting about this error when using ionic capacitor run android -l --host=my_local_ip my app works perfectly fine both on Android emulator and my Phone (Xiaomi Redmi 6). Web browser debug also works fine.

What I’ve done:

  • ionic capacitor build android
  • Debug or build from android studio

Logcat from android studio when debugging (Verbose mode):

2021-06-25 21:50:14.091 8240-8240/? I/com.test.app: Not late-enabling -Xcheck:jni (already on)
2021-06-25 21:50:14.196 8240-8240/? E/com.test.app: Unknown bits set in runtime_flags: 0x8000
2021-06-25 21:50:14.197 8240-8240/? W/com.test.app: Unexpected CPU variant for X86 using defaults: x86
2021-06-25 21:50:14.763 8240-8240/com.test.app W/RenderThread: type=1400 audit(0.0:58): avc: denied { write } for name="property_service" dev="tmpfs" ino=7671 scontext=u:r:untrusted_app:s0:c135,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.test.app
2021-06-25 21:50:14.765 8240-8269/com.test.app D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
2021-06-25 21:50:14.766 8240-8269/com.test.app W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
2021-06-25 21:50:14.799 8240-8269/com.test.app D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
2021-06-25 21:50:14.812 8240-8269/com.test.app D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
2021-06-25 21:50:14.814 8240-8269/com.test.app D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
2021-06-25 21:50:14.911 8240-8240/com.test.app E/com.test.app: Invalid ID 0x00000000.
2021-06-25 21:50:14.912 8240-8240/com.test.app E/com.test.app: Invalid ID 0x00000000.
2021-06-25 21:50:14.918 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2021-06-25 21:50:14.919 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2021-06-25 21:50:14.929 8240-8240/com.test.app I/WebViewFactory: Loading com.google.android.webview version 74.0.3729.185 (code 373018518)
2021-06-25 21:50:14.934 8240-8240/com.test.app I/com.test.app: The ClassLoaderContext is a special shared library.
2021-06-25 21:50:14.939 8240-8240/com.test.app I/com.test.app: The ClassLoaderContext is a special shared library.
2021-06-25 21:50:15.044 8240-8240/com.test.app I/cr_LibraryLoader: Time to load native libraries: 18 ms (timestamps 5112-5130)
2021-06-25 21:50:15.087 8240-8240/com.test.app E/com.test.app: Invalid ID 0x00000000.
2021-06-25 21:50:15.087 8240-8240/com.test.app E/com.test.app: Invalid ID 0x00000000.
2021-06-25 21:50:15.137 8240-8240/com.test.app I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
2021-06-25 21:50:15.145 8240-8240/com.test.app I/cr_LibraryLoader: Expected native library version number "74.0.3729.185", actual native library version number "74.0.3729.185"
2021-06-25 21:50:15.163 8240-8279/com.test.app W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true
2021-06-25 21:50:15.184 8240-8240/com.test.app I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
2021-06-25 21:50:15.201 8240-8279/com.test.app W/com.test.app: Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.509 8240-8240/com.test.app W/com.test.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
2021-06-25 21:50:15.535 8240-8240/com.test.app D/Capacitor: Starting BridgeActivity
2021-06-25 21:50:15.546 8240-8240/com.test.app D/Capacitor: Registering plugin: WebView
2021-06-25 21:50:15.548 8240-8240/com.test.app D/Capacitor: Registering plugin: Storage
2021-06-25 21:50:15.608 8240-8240/com.test.app E/Capacitor: Unable to read file at path public/plugins
2021-06-25 21:50:15.611 8240-8240/com.test.app D/Capacitor: Loading app at http://localhost
2021-06-25 21:50:15.651 8240-8304/com.test.app W/cr_media: Requires BLUETOOTH permission
2021-06-25 21:50:15.663 8240-8240/com.test.app D/Capacitor: App started
2021-06-25 21:50:15.663 8240-8305/com.test.app D/Capacitor: Handling local request: http://localhost/
2021-06-25 21:50:15.693 8240-8240/com.test.app D/Capacitor: App resumed
2021-06-25 21:50:15.707 8240-8329/com.test.app D/HostConnection: HostConnection::get() New Host Connection established 0xc0e96dc0, tid 8329
2021-06-25 21:50:15.746 8240-8329/com.test.app D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_1 
2021-06-25 21:50:15.795 8240-8329/com.test.app D/EGL_emulation: eglCreateContext: 0xc0edaf00: maj 3 min 1 rcv 4
2021-06-25 21:50:15.797 8240-8329/com.test.app D/EGL_emulation: eglMakeCurrent: 0xc0edaf00: ver 3 1 (tinfo 0xd544c820)
2021-06-25 21:50:15.811 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
2021-06-25 21:50:15.811 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
2021-06-25 21:50:15.913 8240-8267/com.test.app D/HostConnection: HostConnection::get() New Host Connection established 0xd53f4e10, tid 8267
2021-06-25 21:50:15.915 8240-8267/com.test.app D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_1 
2021-06-25 21:50:15.915 8240-8267/com.test.app W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2021-06-25 21:50:15.922 8240-8267/com.test.app D/EGL_emulation: eglCreateContext: 0xe0c741e0: maj 3 min 1 rcv 4
2021-06-25 21:50:15.923 8240-8267/com.test.app D/EGL_emulation: eglMakeCurrent: 0xe0c741e0: ver 3 1 (tinfo 0xbe512330)
2021-06-25 21:50:15.925 8240-8267/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
2021-06-25 21:50:15.925 8240-8267/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
2021-06-25 21:50:15.938 8240-8267/com.test.app W/Gralloc3: mapper 3.x is not supported
2021-06-25 21:50:15.942 8240-8267/com.test.app D/HostConnection: createUnique: call
2021-06-25 21:50:15.942 8240-8267/com.test.app D/HostConnection: HostConnection::get() New Host Connection established 0xc0e99b10, tid 8267
2021-06-25 21:50:15.944 8240-8267/com.test.app D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_1 
2021-06-25 21:50:15.944 8240-8267/com.test.app D/eglCodecCommon: allocate: Ask for block of size 0x1000
2021-06-25 21:50:15.944 8240-8267/com.test.app D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000
2021-06-25 21:50:15.950 8240-8267/com.test.app D/EGL_emulation: eglMakeCurrent: 0xe0c741e0: ver 3 1 (tinfo 0xbe512330)
2021-06-25 21:50:15.968 8240-8329/com.test.app I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2021-06-25 21:50:15.993 8240-8329/com.test.app W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
2021-06-25 21:50:16.031 8240-8267/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.031 8240-8267/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.289 8240-8329/com.test.app D/EGL_emulation: eglCreateContext: 0xbe5a1420: maj 3 min 0 rcv 3
2021-06-25 21:50:16.290 8240-8329/com.test.app D/EGL_emulation: eglMakeCurrent: 0xbe5a1420: ver 3 0 (tinfo 0xd544c820)
2021-06-25 21:50:16.309 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.309 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.378 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.379 8240-8329/com.test.app E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
2021-06-25 21:50:16.509 8240-8253/com.test.app I/com.test.app: Background young concurrent copying GC freed 39297(7952KB) AllocSpace objects, 30(1136KB) LOS objects, 76% free, 1860KB/8004KB, paused 62us total 305.210ms
2021-06-25 21:50:16.538 8240-8305/com.test.app D/Capacitor: Handling local request: http://localhost/%3C%=%20BASE_URL%20%%3Eassets/icon/favicon.png
2021-06-25 21:50:16.635 8240-8305/com.test.app E/Capacitor: Unable to open asset URL: http://localhost/%3C%=%20BASE_URL%20%%3Eassets/icon/favicon.png
2021-06-25 21:50:16.637 8240-8283/com.test.app E/Capacitor: Unable to open asset URL: http://localhost/%3C%=%20BASE_URL%20%%3Eassets/icon/favicon.png
2021-06-25 21:50:16.638 8240-8305/com.test.app E/Capacitor: Unable to open asset URL: http://localhost/%3C%=%20BASE_URL%20%%3Eassets/icon/favicon.png

Software versions:
OS: Fedora 34
Android studio:

Android Studio 4.2.1
Build #AI-202.7660.26.42.7351085, built on May 10, 2021
Runtime version: 11.0.8+0-b944-P17168821 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Linux 5.12.11-300.fc34.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Current Desktop: GNOME

Ionic version: 6.16.2
VUE Version: 3.0.11

I don’t have too much experience with Android studio & Android development, so maybe I’m missing something silly.

Thanks in advance!
Also sorry for my bad English, not a native speaker! :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>