Question

Unable to open asset URL on Android

Posted December 10, 2020 1.7k views
Development

My app starts in the emulator on Android studio, but shows a blank screen.

For the same asset file, I first get a successful ‘Handling local request’ from Capacitor using an emulator in Android Studio, but then later on get a 'Unable to open asset URL’ for the exact same file.

I am using Android 10 on the emulated Nexus 5 phone with API 29 in Android Studio 4.1.1.

Full debug output below.

Any ideas?

Nat


12/10 10:56:52: Launching 'app' on No Devices.
Install successfully finished in 1 s 185 ms.
$ adb shell am start -n "com.eatinganalytics.eatingstream/com.eatinganalytics.eatingstream.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.eatinganalytics.eatingstream | com.eatinganalytics.eatingstream.test
Waiting for application to come online: com.eatinganalytics.eatingstream | com.eatinganalytics.eatingstream.test
Connected to process 22427 on device 'Nexus_5_API_29 [emulator-5554]'.
Connecting to com.eatinganalytics.eatingstream
Connected to the target VM, address: 'localhost:55500', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/cs.eatingstrea: Not late-enabling -Xcheck:jni (already on)
E/cs.eatingstrea: Unknown bits set in runtime_flags: 0x8000
W/cs.eatingstrea: Unexpected CPU variant for X86 using defaults: x86
W/ActivityThread: Application com.eatinganalytics.eatingstream is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
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: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/chatty: uid=10138(com.eatinganalytics.eatingstream) identical 2 lines
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1326)
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
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
W/RenderThread: type=1400 audit(0.0:164): avc: denied { write } for name="property_service" dev="tmpfs" ino=8329 scontext=u:r:untrusted_app:s0:c138,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
E/cs.eatingstrea: Invalid ID 0x00000000.
W/cs.eatingstrea: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/cs.eatingstrea: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
I/WebViewFactory: Loading com.google.android.webview version 74.0.3729.185 (code 373018518)
I/cs.eatingstrea: The ClassLoaderContext is a special shared library.
I/cs.eatingstrea: The ClassLoaderContext is a special shared library.
I/cr_LibraryLoader: Time to load native libraries: 29 ms (timestamps 575-604)
E/cs.eatingstrea: Invalid ID 0x00000000.
E/cs.eatingstrea: Invalid ID 0x00000000.
I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number "74.0.3729.185", actual native library version number "74.0.3729.185"
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true
W/cs.eatingstrea: Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (greylist, reflection, allowed)
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
E/chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.eatinganalytics.eatingstream/cache/WebView/Crashpad: No such file or directory (2)
    [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.eatinganalytics.eatingstream/cache/WebView/Crashpad: No such file or directory (2)
W/cs.eatingstrea: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (greylist, reflection, allowed)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (greylist, reflection, allowed)
W/cs.eatingstrea: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
W/cs.eatingstrea: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
W/cs.eatingstrea: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
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
W/cr_media: Requires BLUETOOTH permission
D/HostConnection: HostConnection::get() New Host Connection established 0xdcfe7610, tid 22549
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 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_host_side_tracing ANDROID_EMU_gles_max_version_2 
D/Capacitor/LN: LocalNotification received: null
D/Capacitor/LN: Activity started without notification attached
E/chromium: [ERROR:gl_surface_egl.cc(342)] eglChooseConfig failed with error EGL_SUCCESS
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xc60f3920: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xc60f3920: ver 2 0 (tinfo 0xc5cd10b0)
D/Capacitor: Handling local request: http://localhost/
E/chromium: [ERROR:gl_surface_egl.cc(342)] eglChooseConfig failed with error EGL_SUCCESS
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
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xc60f4760: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xc60f4760: ver 2 0 (tinfo 0xc5cd10b0)
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0
D/HostConnection: HostConnection::get() New Host Connection established 0xdcfe6ad0, tid 22481
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 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_host_side_tracing ANDROID_EMU_gles_max_version_2 
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xc60f2720: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xc60f2720: ver 2 0 (tinfo 0xdcfb9610)
W/Gralloc3: mapper 3.x is not supported
D/HostConnection: createUnique: call
    HostConnection::get() New Host Connection established 0xc5d38230, tid 22481
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 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_host_side_tracing ANDROID_EMU_gles_max_version_2 
D/eglCodecCommon: allocate: Ask for block of size 0x1000
    allocate: ioctl allocate returned offset 0x3ff803000 size 0x2000
D/EGL_emulation: eglMakeCurrent: 0xc60f2720: ver 2 0 (tinfo 0xdcfb9610)
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 0
I/OpenGLRenderer: Davey! duration=996ms; Flags=1, IntendedVsync=69702550231579, Vsync=69702966898229, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=69702976922880, AnimationStart=69702977177360, PerformTraversalsStart=69702977289050, DrawStart=69703290789580, SyncQueued=69703317786310, SyncStart=69703319019460, IssueDrawCommandsStart=69703319091300, SwapBuffers=69703472780440, FrameCompleted=69703547527290, DequeueBufferDuration=397000, QueueBufferDuration=708000, 
D/Capacitor: App paused
D/Capacitor/App: Firing change: false
V/Capacitor/App: Notifying listeners for event appStateChange
D/Capacitor/App: No listeners found for event appStateChange
D/Capacitor: App stopped
D/Capacitor: Saving instance state!
D/Capacitor: App destroyed
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0
E/cs.eatingstrea: Invalid ID 0x00000000.
E/cs.eatingstrea: Invalid ID 0x00000000.
E/cs.eatingstrea: Invalid ID 0x00000000.
    Invalid ID 0x00000000.
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
D/Capacitor/LN: LocalNotification received: null
D/Capacitor/LN: Activity started without notification attached
D/Capacitor: Handling local request: http://localhost/
D/eglCodecCommon: setVertexArrayObject: set vao to 3 (3) 0 0
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
I/Choreographer: Skipped 96 frames!  The application may be doing too much work on its main thread.
D/Capacitor: Handling local request: http://localhost/app2/css/app.e184ad0d.css
D/Capacitor: Handling local request: http://localhost/app2/css/chunk-vendors.d8f615b2.css
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 8
I/OpenGLRenderer: Davey! duration=1737ms; Flags=1, IntendedVsync=69703087117807, Vsync=69704687117743, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=69704689557830, AnimationStart=69704689803850, PerformTraversalsStart=69704694692070, DrawStart=69704766068520, SyncQueued=69704794783810, SyncStart=69704795987070, IssueDrawCommandsStart=69704796136190, SwapBuffers=69704803306860, FrameCompleted=69704825329640, DequeueBufferDuration=1539000, QueueBufferDuration=767000, 
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
D/Capacitor: Handling local request: http://localhost/app2/css/app.e184ad0d.css
D/Capacitor: Handling local request: http://localhost/app2/css/chunk-vendors.d8f615b2.css
D/Capacitor: Handling local request: http://localhost/app2/js/app.cfc3feaf.js
D/Capacitor: Handling local request: http://localhost/app2/js/chunk-vendors.b2e955b6.js
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 8
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
D/Capacitor: Handling local request: http://localhost/microsoft.cognitiveservices.speech.sdk.bundle-min.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/app.e184ad0d.css
D/Capacitor: Handling local request: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/css/chunk-vendors.d8f615b2.css
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
D/Capacitor: Handling local request: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
D/Capacitor: Handling local request: http://localhost/microsoft.cognitiveservices.speech.sdk.bundle-min.js
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
I/chatty: uid=10138(com.eatinganalytics.eatingstream) RenderThread identical 2 lines
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
I/chatty: uid=10138(com.eatinganalytics.eatingstream) RenderThread identical 3 lines
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
D/Capacitor: Handling local request: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
I/chatty: uid=10138(com.eatinganalytics.eatingstream) TaskSchedulerFo identical 1 line
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 7 6
D/Capacitor: Handling local request: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
D/Capacitor: Handling local request: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/chunk-vendors.b2e955b6.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
D/Capacitor: Handling local request: http://localhost/app2/js/app.cfc3feaf.js
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 7 9
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
I/chatty: uid=10138(com.eatinganalytics.eatingstream) TaskSchedulerFo identical 1 line
E/Capacitor: Unable to open asset URL: http://localhost/app2/js/app.cfc3feaf.js
D/Capacitor: Handling local request: http://localhost/app2/img/icons/favicon-16x16.png
D/Capacitor: Handling local request: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
D/Capacitor: Handling local request: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
D/Capacitor: Handling local request: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-16x16.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
E/Capacitor: Unable to open asset URL: http://localhost/app2/img/icons/favicon-32x32.png
edited by MattIPv4
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!