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

JIRA | yechongbo | 8 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 | 8 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 | 8 months ago | yechongbo
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.xwalk.core.internal.XWalkViewDelegate$2
  3. 0
    samebug tip
    Try to restart Play
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Please add the jar file of spring as dependency for that JavaFX Project.
  6. 0
    samebug tip
    org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar

    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