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

GitHub | minstrelsy | 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

    OutOfMemory in Lollipop & Marshmallow

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

    Why would adding espresso-contrib cause an InflateException?

    Stack Overflow | 2 years ago | rosegrink
    android.view.InflateException: Binary XML file line #33: Error inflating class android.support.v7.widget.RecyclerView
  3. 0

    Forceclose occuring while opening the application

    Stack Overflow | 4 years ago | Kamalone
    android.view.InflateException: Binary XML file line #12: Error inflating class fragment
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    create listview on fragment custom drawer

    Stack Overflow | 3 years ago | Derry Susilo
    android.view.InflateException: Binary XML file line #7: Error inflating class fragment
  6. 0

    IncompatibleClassChangeError: android.support.design.internal.NavigationMenuView

    Stack Overflow | 2 years ago | ligi
    android.view.InflateException: Binary XML file line #28: Error inflating class android.support.design.widget.NavigationView
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 #21: Error inflating class <unknown>

    at android.view.LayoutInflater.createView()
  2. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:657)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
    3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:847)
    5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    6. android.view.LayoutInflater.rInflate(LayoutInflater.java:855)
    7. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    8. android.view.LayoutInflater.rInflate(LayoutInflater.java:855)
    9. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    10. android.view.LayoutInflater.inflate(LayoutInflater.java:527)
    11. android.view.LayoutInflater.inflate(LayoutInflater.java:429)
    11 frames
  3. com.xxx
    xxxFragment.onCreateView
    1. com.xxx.xxxFragment.onCreateView(SourceFile:130)
    1 frame
  4. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.Fragment.performCreateView(SourceFile:1962)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1067)
    3. android.support.v4.app.FragmentManagerImpl.attachFragment(SourceFile:1426)
    4. android.support.v4.app.BackStackRecord.run(SourceFile:728)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(SourceFile:1613)
    6. android.support.v4.app.FragmentManagerImpl.executePendingTransactions(SourceFile:570)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(SourceFile:141)
    8. android.support.v4.view.ViewPager.populate(SourceFile:1106)
    9. android.support.v4.view.ViewPager.populate(SourceFile:952)
    10. android.support.v4.view.ViewPager.onMeasure(SourceFile:1474)
    10 frames
  5. Android Platform
    View.measure
    1. android.view.View.measure(View.java:20151)
    2. android.widget.LinearLayout.measureVertical(LinearLayout.java:900)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    4. android.view.View.measure(View.java:20151)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    7. android.view.View.measure(View.java:20151)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    9. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    10. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    11. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    12. android.view.View.measure(View.java:20151)
    12 frames
  6. Android Support v4
    DrawerLayout.onMeasure
    1. android.support.v4.widget.DrawerLayout.onMeasure(SourceFile:940)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    3 frames
  8. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(SourceFile:135)
    1 frame
  9. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    14. android.view.View.measure(View.java:20151)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    16 frames
  10. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
    1 frame
  11. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7403)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    14. android.app.ActivityThread.main(ActivityThread.java:7229)
    14 frames
  12. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    1 frame
  13. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames