java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView

JIRA | Snehasis | 2 years ago
  1. 0

    Impacted Cases ============== Imported Cross Walk ARM Library on embaded Cross Walk Sample. For some lower Android 4.3 its working fine For a Device Android 4.4 or greater May be its Just opening the App and then Crashed with a lots of Error as below. 04-17 18:00:21.993: E/AndroidRuntime(25419): FATAL EXCEPTION: main 04-17 18:00:21.993: E/AndroidRuntime(25419): Process: org.crosswalkproject.xwalkembed, PID: 25419 04-17 18:00:21.993: E/AndroidRuntime(25419): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.access$800(ActivityThread.java:139) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Looper.loop(Looper.java:149) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.main(ActivityThread.java:5268) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invokeNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invoke(Method.java:515) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 04-17 18:00:21.993: E/AndroidRuntime(25419): at dalvik.system.NativeStart.main(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:620) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:469) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.setContentView(Activity.java:2002) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.crosswalkproject.xwalkembed.MainActivity.onCreate(MainActivity.java:17) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.performCreate(Activity.java:5411) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 11 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.reflect.InvocationTargetException 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.constructNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 21 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper$ConstructorHelper.loadConstructor(ReflectionHelper.java:37) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:246) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.XWalkView.<init>(XWalkView.java:169) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 24 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 30 more Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

    JIRA | 2 years ago | Snehasis
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView
  2. 0

    Impacted Cases ============== Imported Cross Walk ARM Library on embaded Cross Walk Sample. For some lower Android 4.3 its working fine For a Device Android 4.4 or greater May be its Just opening the App and then Crashed with a lots of Error as below. 04-17 18:00:21.993: E/AndroidRuntime(25419): FATAL EXCEPTION: main 04-17 18:00:21.993: E/AndroidRuntime(25419): Process: org.crosswalkproject.xwalkembed, PID: 25419 04-17 18:00:21.993: E/AndroidRuntime(25419): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.access$800(ActivityThread.java:139) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Looper.loop(Looper.java:149) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.main(ActivityThread.java:5268) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invokeNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invoke(Method.java:515) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 04-17 18:00:21.993: E/AndroidRuntime(25419): at dalvik.system.NativeStart.main(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:620) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:469) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.setContentView(Activity.java:2002) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.crosswalkproject.xwalkembed.MainActivity.onCreate(MainActivity.java:17) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.performCreate(Activity.java:5411) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 11 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.reflect.InvocationTargetException 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.constructNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 21 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper$ConstructorHelper.loadConstructor(ReflectionHelper.java:37) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:246) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.XWalkView.<init>(XWalkView.java:169) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 24 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 30 more Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

    JIRA | 2 years ago | Snehasis
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView
  3. 0

    Crosswalk with Eclipse crashes

    Stack Overflow | 2 years ago | Qbul3kZ
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.crosswalktest/com.example.crosswalktest.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spike in crashes last week

    GitHub | 1 year ago | secretrobotron
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.mozilla.webmaker/org.mozilla.webmaker.activity.Login}: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  6. 0

    How does one inflate XWalkView in an XML layout (or programmatic)?

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode

    1 unregistered visitors
    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.RuntimeException

      Use SharedXWalkView if you want to support shared mode

      at org.xwalk.core.ReflectionHelper.handleException()
    2. org.xwalk.core
      XWalkView.<init>
      1. org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237)
      2. org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132)
      3. org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199)
      4. org.xwalk.core.ReflectionHelper$ConstructorHelper.loadConstructor(ReflectionHelper.java:37)
      5. org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:246)
      6. org.xwalk.core.XWalkView.<init>(XWalkView.java:169)
      6 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.constructNative(Native Method)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      2 frames
    4. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createView(LayoutInflater.java:594)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
      3. android.view.LayoutInflater.inflate(LayoutInflater.java:469)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:353)
      5 frames
    5. Android
      PhoneWindow.setContentView
      1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
      1 frame
    6. Android Platform
      Activity.setContentView
      1. android.app.Activity.setContentView(Activity.java:2002)
      1 frame
    7. org.crosswalkproject.xwalkembed
      MainActivity.onCreate
      1. org.crosswalkproject.xwalkembed.MainActivity.onCreate(MainActivity.java:17)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5411)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396)
      5. android.app.ActivityThread.access$800(ActivityThread.java:139)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:149)
      9. android.app.ActivityThread.main(ActivityThread.java:5268)
      9 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    10. 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
    11. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame