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

JIRA | Y.Y. | 1 year ago
  1. 0

    Impacted Cases ============== ISV cannot use xwalk lite version to create own apps. Reproduce Test Steps ==================== 1. Use eclipse to import xwalk lite embedded core lib project named project1 2. Build this project1 3. Use eclipse to create new android app project as instructions on crosswalk official website for embedded mode, the project is project2 4. Add support lib (ARM version) from project1 to project2 5. Build the app and deploy it to XiaoMi 3 and run it Expected Outcome ================ Loading crosswalk official website page Actual Outcome ============== Crashed Got following issues: 08-24 20:09:43.712: I/Process(10761): Sending signal. PID: 10761 SIG: 9 08-24 20:09:44.772: D/dalvikvm(10798): GetMethodID: not returning static method Landroid/os/Process;.getTotalMemory ()J 08-24 20:09:44.772: D/dalvikvm(10798): GetMethodID: not returning static method Landroid/os/Process;.getFreeMemory ()J 08-24 20:09:44.812: D/XWalkLib(10798): Init embedded mode 08-24 20:09:44.812: D/XWalkLib(10798): lib version, api:3, min api:3 08-24 20:09:44.812: D/XWalkLib(10798): app version, api:3, min api:3 08-24 20:09:44.832: D/dalvikvm(10798): Trying to load lib /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390 08-24 20:09:44.832: D/dalvikvm(10798): Added shared lib /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390 08-24 20:09:44.832: D/dalvikvm(10798): No JNI_OnLoad found in /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390, skipping init 08-24 20:09:44.832: I/LibraryLoader(10798): Time to load native libraries: 1 ms (timestamps 8531-8532) 08-24 20:09:44.832: W/dalvikvm(10798): No implementation found for native Lorg/chromium/base/library_loader/LibraryLoader;.nativeGetVersionNumber:()Ljava/lang/String; 08-24 20:09:44.832: D/XWalkLib(10798): Failed to load native library 08-24 20:09:44.832: D/AndroidRuntime(10798): Shutting down VM 08-24 20:09:44.832: W/dalvikvm(10798): threadid=1: thread exiting with uncaught exception (group=0x41757d58) 08-24 20:09:44.832: E/AndroidRuntime(10798): FATAL EXCEPTION: main 08-24 20:09:44.832: E/AndroidRuntime(10798): Process: com.muji.xwalkembed, PID: 10798 08-24 20:09:44.832: E/AndroidRuntime(10798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.muji.xwalkembed/com.muji.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2190) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2239) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.access$800(ActivityThread.java:141) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.os.Handler.dispatchMessage(Handler.java:102) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.os.Looper.loop(Looper.java:136) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.main(ActivityThread.java:5047) 08-24 20:09:44.832: E/AndroidRuntime(10798): at java.lang.reflect.Method.invokeNative(Native Method) 08-24 20:09:44.832: E/AndroidRuntime(10798): at java.lang.reflect.Method.invoke(Method.java:515) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 08-24 20:09:44.832: E/AndroidRuntime(10798): at dalvik.system.NativeStart.main(Native Method) 08-24 20:09:44.832: E/AndroidRuntime(10798): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.createView(LayoutInflater.java:623) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:472) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:400) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.Activity.setContentView(Activity.java:1947) Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

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

    Impacted Cases ============== ISV cannot use xwalk lite version to create own apps. Reproduce Test Steps ==================== 1. Use eclipse to import xwalk lite embedded core lib project named project1 2. Build this project1 3. Use eclipse to create new android app project as instructions on crosswalk official website for embedded mode, the project is project2 4. Add support lib (ARM version) from project1 to project2 5. Build the app and deploy it to XiaoMi 3 and run it Expected Outcome ================ Loading crosswalk official website page Actual Outcome ============== Crashed Got following issues: 08-24 20:09:43.712: I/Process(10761): Sending signal. PID: 10761 SIG: 9 08-24 20:09:44.772: D/dalvikvm(10798): GetMethodID: not returning static method Landroid/os/Process;.getTotalMemory ()J 08-24 20:09:44.772: D/dalvikvm(10798): GetMethodID: not returning static method Landroid/os/Process;.getFreeMemory ()J 08-24 20:09:44.812: D/XWalkLib(10798): Init embedded mode 08-24 20:09:44.812: D/XWalkLib(10798): lib version, api:3, min api:3 08-24 20:09:44.812: D/XWalkLib(10798): app version, api:3, min api:3 08-24 20:09:44.832: D/dalvikvm(10798): Trying to load lib /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390 08-24 20:09:44.832: D/dalvikvm(10798): Added shared lib /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390 08-24 20:09:44.832: D/dalvikvm(10798): No JNI_OnLoad found in /data/app-lib/com.muji.xwalkembed-1/libxwalkdummy.so 0x4224e390, skipping init 08-24 20:09:44.832: I/LibraryLoader(10798): Time to load native libraries: 1 ms (timestamps 8531-8532) 08-24 20:09:44.832: W/dalvikvm(10798): No implementation found for native Lorg/chromium/base/library_loader/LibraryLoader;.nativeGetVersionNumber:()Ljava/lang/String; 08-24 20:09:44.832: D/XWalkLib(10798): Failed to load native library 08-24 20:09:44.832: D/AndroidRuntime(10798): Shutting down VM 08-24 20:09:44.832: W/dalvikvm(10798): threadid=1: thread exiting with uncaught exception (group=0x41757d58) 08-24 20:09:44.832: E/AndroidRuntime(10798): FATAL EXCEPTION: main 08-24 20:09:44.832: E/AndroidRuntime(10798): Process: com.muji.xwalkembed, PID: 10798 08-24 20:09:44.832: E/AndroidRuntime(10798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.muji.xwalkembed/com.muji.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2190) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2239) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.access$800(ActivityThread.java:141) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.os.Handler.dispatchMessage(Handler.java:102) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.os.Looper.loop(Looper.java:136) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.ActivityThread.main(ActivityThread.java:5047) 08-24 20:09:44.832: E/AndroidRuntime(10798): at java.lang.reflect.Method.invokeNative(Native Method) 08-24 20:09:44.832: E/AndroidRuntime(10798): at java.lang.reflect.Method.invoke(Method.java:515) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 08-24 20:09:44.832: E/AndroidRuntime(10798): at dalvik.system.NativeStart.main(Native Method) 08-24 20:09:44.832: E/AndroidRuntime(10798): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.createView(LayoutInflater.java:623) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:472) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:400) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 08-24 20:09:44.832: E/AndroidRuntime(10798): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 08-24 20:09:44.832: E/AndroidRuntime(10798): at android.app.Activity.setContentView(Activity.java:1947) Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

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

    Crash reporst 2.9 - ClassCastException on account creation

    GitHub | 2 years ago | maxme
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.wordpress.android/org.wordpress.android.ui.accounts.NewAccountActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error with Robolectric and ActionBarContainer

    GitHub | 3 years ago | jorgevila
    android.view.InflateException: XML file ./../LibApp/../appcompat/res/layout/abc_action_bar_decor_include.xml line #-1 (sorry, not yet implemented): Error inflating class android.support.v7.internal.widget.ActionBarContainer
  6. 0

    android.view.InflateException ... Error inflating class fragment

    GitHub | 3 years ago | alixwar
    android.view.InflateException: XML file C:\XXX\application\res\layout\XXX.xml line #-1 (sorry, not yet implemented): Error inflating class fragment

  1. sagar 1 times, last 9 months ago
  2. filpgame 4 times, last 1 week ago
  3. Alexandru Popa 6 times, last 3 weeks ago
  4. Benny 42 times, last 4 months ago
  5. danleyb2Interintel 1 times, last 5 months ago
15 more registered users
48 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. android.view.InflateException

    Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView

    at android.view.LayoutInflater.createView()
  2. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:623)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:472)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:400)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:353)
    5 frames
  3. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
    1 frame
  4. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:1947)
    1 frame