android.view.InflateException: Binary XML file line #18: Error inflating class <unknown>

GitHub | samsonho | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Uncaught exception using XpPreferenceFragment on Android 2.3.6. (4.1.2 and 5.1.1 ok)

    GitHub | 10 months ago | samsonho
    android.view.InflateException: Binary XML file line #18: Error inflating class <unknown>
  2. 0

    Another very odd crash from Fabric.io (81 crashes from 23 users)

    GitHub | 2 years ago | afollestad
    android.view.InflateException: Binary XML file line #18: Error inflating class <unknown>
  3. 0

    When i use RippleDrawable with API 10 using DesignSupportLibrary, i got android.view.InflateException error in layout of list item

    Stack Overflow | 2 years ago | Dharmesh Baldha
    android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.LinearLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android.view.InflateException: Binary XML file line #2: Error inflating class

    Stack Overflow | 2 years ago | user3888352
    android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
  6. 0

    Activity not working on 2.2?

    Stack Overflow | 6 years ago
    android.view.InflateException: Binary XML file line #50: Error inflating class &lt;unknown&gt;
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 #18: Error inflating class <unknown>

    at android.view.LayoutInflater.createView()
  2. Android Platform
    LayoutInflater.createView
    1. android.view.LayoutInflater.createView(LayoutInflater.java:518)
    1 frame
  3. Android
    PhoneLayoutInflater.onCreateView
    1. com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    1 frame
  4. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
    2. android.view.LayoutInflater.inflate(LayoutInflater.java:386)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:320)
    3 frames
  5. android.support.v7
    XpPreferenceGroupAdapter.onCreateViewHolder
    1. android.support.v7.preference.XpPreferenceGroupAdapter.onCreateViewHolder(XpPreferenceGroupAdapter.java:76)
    2. android.support.v7.preference.XpPreferenceGroupAdapter.onCreateViewHolder(XpPreferenceGroupAdapter.java:16)
    2 frames
  6. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5482)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4707)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
    8. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
    9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
    10. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
    10 frames
  7. Android Platform
    View.layout
    1. android.view.View.layout(View.java:7228)
    2. android.widget.FrameLayout.onLayout(FrameLayout.java:338)
    3. android.view.View.layout(View.java:7228)
    4. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
    5. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
    6. android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
    7. android.view.View.layout(View.java:7228)
    8. android.widget.FrameLayout.onLayout(FrameLayout.java:338)
    9. android.view.View.layout(View.java:7228)
    10. android.widget.RelativeLayout.onLayout(RelativeLayout.java:912)
    11. android.view.View.layout(View.java:7228)
    11 frames
  8. android.support.design
    CoordinatorLayout.onLayout
    1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:122)
    2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1170)
    4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:814)
    4 frames
  9. Android Platform
    View.layout
    1. android.view.View.layout(View.java:7228)
    1 frame
  10. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
    1 frame
  11. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:7228)
    2. android.widget.FrameLayout.onLayout(FrameLayout.java:338)
    3. android.view.View.layout(View.java:7228)
    4. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
    5. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
    6. android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
    7. android.view.View.layout(View.java:7228)
    8. android.widget.FrameLayout.onLayout(FrameLayout.java:338)
    9. android.view.View.layout(View.java:7228)
    10. android.widget.FrameLayout.onLayout(FrameLayout.java:338)
    11. android.view.View.layout(View.java:7228)
    12. android.view.ViewRoot.performTraversals(ViewRoot.java:1148)
    13. android.view.ViewRoot.handleMessage(ViewRoot.java:1868)
    14. android.os.Handler.dispatchMessage(Handler.java:99)
    15. android.os.Looper.loop(Looper.java:130)
    16. android.app.ActivityThread.main(ActivityThread.java:3691)
    16 frames
  12. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:507)
    2 frames
  13. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
    2 frames
  14. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame