java.lang.RuntimeException

tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I followed Xiaofeng Zhang's suggestions, and the initial error is now gone. However I do have an issue in intialising the Crosswalk Core library. I suspect my problem is in the way the project resources are copied from the library project. I have essentially followed this suggestion: http://www.zhuatang.com/en/as-tips-3.jsp I copied the resources from the library project to my project to the res2 folder and then put in a include for res in the app build.gradle file as follows: android.sourceSets { main.res.srcDirs = ['src/main/res', 'src/main/res2'] } However I can see that the CrossWalk core lib, still cannot find the resources it needs, hence the warning below. Could you please advise if this method is reliable? Or if there is an alternate for Android Studio that would work better? Kind Regards Ghous 09-08 17:04:57.130 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Pre init xwalk core in com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.185 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class org.xwalk.core.XWalkView to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class com.example.ghouskhan.xview2.MainActivity$MyResourceClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve method setResourceClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class com.example.ghouskhan.xview2.MainActivity$MyUIClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve method setUIClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 D/XWalkActivity: Initialize by XWalkActivity 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: DecompressTask started 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 W/ResourceType: No package identifier when getting value for resource number 0x00000000 09-08 17:04:57.263 13435-13470/com.example.ghouskhan.xview2 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 09-08 17:04:57.269 13435-13435/com.example.ghouskhan.xview2 I/GRALLOC-DRM: create intel for driver i915 09-08 17:04:57.293 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: DecompressTask finished, 0 09-08 17:04:57.294 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: ActivateTask started 09-08 17:04:57.296 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Attach xwalk core 09-08 17:04:57.296 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: [App Version] build:20.50.533.12, api:7, min_api:1 09-08 17:04:57.298 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: [Lib Version] build:20.50.533.12, api:7, min_api:5 09-08 17:04:57.300 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Crosswalk download mode: false 09-08 17:04:57.300 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: XWalk core version matched 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Native library is built for IA 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: XWalk core architecture matched 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Running in embedded mode 09-08 17:04:57.405 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_Core version 1 09-08 17:04:57.405 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_DRI2 version 4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_TexBuffer version 3 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI2_Flush version 4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_IMAGE version 11 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/OpenGLRenderer: Initialized EGL, version 1.4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 09-08 17:04:57.460 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Dock xwalk core 09-08 17:04:57.460 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Init core bridge 09-08 17:04:57.464 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Init xwalk view 09-08 17:04:57.470 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.470 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.475 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.475 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.478 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.478 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.484 13435-13435/com.example.ghouskhan.xview2 D/AndroidRuntime: Shutting down VM 09-08 17:04:57.484 13435-13435/com.example.ghouskhan.xview2 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.ghouskhan.xview2, PID: 13435 java.lang.RuntimeException: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:194) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: org.chromium.base.library_loader.ProcessInitException at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:285) at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123) at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.ghouskhan.xview2-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ghouskhan.xview2-2/lib/x86_64, /data/app/com.example.ghouskhan.xview2-2/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libxwalkdummy.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:271) at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123) at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Impacted Cases ============== Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Ghous,
  • app crash on android api 16
    via GitHub by mrugendra
    ,
  • chromium_android_linker.cr crash
    via GitHub by rkawala
    ,
  • GitHub comment 315#141470216
    via GitHub by edap
    ,
  • ZBar jar in android
    via Stack Overflow by Nandhu
    ,
    • java.lang.RuntimeException: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:194) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) ... 13 more Caused by: org.chromium.base.library_loader.ProcessInitException at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:285) at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123) at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192) ... 19 more Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.ghouskhan.xview2-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ghouskhan.xview2-2/lib/x86_64, /data/app/com.example.ghouskhan.xview2-2/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libxwalkdummy.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:271) ... 21 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    spespe
    23 times, last one,
    dmitrydmitry
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    271 more bugmates