java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2

JIRA | yechongbo | 6 months ago
  1. 0

    it works well without multidex build, but i have to enable it because of another build issue. the outcome of this is app crashes on launch. please advise how to work it around. thanks! gradle build config for multidex i am using: {code} android { dependencies { compile 'com.android.support:multidex:' } dexOptions { javaMaxHeapSize "4g" } defaultConfig { multiDexEnabled true } } {code} and the crash report: {code} java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2 at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:208) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:170) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:283) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5113) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2 at org.xwalk.core.internal.XWalkViewDelegate.setupResourceInterceptor(XWalkViewDelegate.java:243) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:163) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:100) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) ... 15 more {code}

    JIRA | 6 months ago | yechongbo
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2
  2. 0

    it works well without multidex build, but i have to enable it because of another build issue. the outcome of this is app crashes on launch. please advise how to work it around. thanks! gradle build config for multidex i am using: {code} android { dependencies { compile 'com.android.support:multidex:' } dexOptions { javaMaxHeapSize "4g" } defaultConfig { multiDexEnabled true } } {code} and the crash report: {code} java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2 at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:208) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:170) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:283) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5113) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2 at org.xwalk.core.internal.XWalkViewDelegate.setupResourceInterceptor(XWalkViewDelegate.java:243) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:163) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:100) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) ... 15 more {code}

    JIRA | 6 months ago | yechongbo
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2
  3. 0

    GitHub comment 54#258241099

    GitHub | 1 month ago | apaunov
    java.lang.NoClassDefFoundError: io.branch.referral.BranchStrongMatchHelper$2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to solve a NoClassFoundDefError

    Stack Overflow | 5 months ago | w4tch0ut
    java.lang.NoClassDefFoundError: org.codeaurora.ims.ImsService$2
  6. 0

    Java - Cannot connect to Websocket

    Stack Overflow | 6 months ago | Michael Tot Korsgaard
    java.lang.NoClassDefFoundError: com.example.eglu.test.MainActivity$2

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org.xwalk.core.internal.XWalkViewDelegate$2

      at org.xwalk.core.internal.XWalkViewDelegate.setupResourceInterceptor()
    2. org.xwalk.core
      XWalkViewDelegate.init
      1. org.xwalk.core.internal.XWalkViewDelegate.setupResourceInterceptor(XWalkViewDelegate.java:243)
      2. org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:163)
      3. org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:100)
      3 frames
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    4. org.xwalk.core
      XWalkLibraryLoader$ActivateTask.onPostExecute
      1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
      2. org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:208)
      3. org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:170)
      4. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:283)
      5. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257)
      5 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:632)
      2. android.os.AsyncTask.access$600(AsyncTask.java:177)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:136)
      6. android.app.ActivityThread.main(ActivityThread.java:5113)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame