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

GitHub | minstrelsy | 9 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 | 9 months ago | minstrelsy
    android.view.InflateException: Binary XML file line #21: Binary XML file line #21: Error inflating class <unknown>
  2. 0

    LayoutInflater Exception

    Stack Overflow | 9 months ago | Deniz da King
    android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class <unknown>
  3. 0

    Android - Error inflating class fragment when switching tabs - Tablayout

    Stack Overflow | 9 months ago | LBJ33
    android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 85#252868932

    GitHub | 6 months ago | 601367322
    android.view.InflateException: Binary XML file line #19: Binary XML file line #19: Error inflating class com.prance.base.widget.CircleIndicator
  6. 0

    GitHub comment 334#252869299

    GitHub | 6 months ago | 601367322
    android.view.InflateException: Binary XML file line #19: Binary XML file line #19: Error inflating class com.prance.base.widget.CircleIndicator
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: Binary XML file line #21: Error inflating class <unknown>

    at android.view.LayoutInflater.inflate()
  2. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.inflate(LayoutInflater.java:551)
    2. android.view.LayoutInflater.inflate(LayoutInflater.java:429)
    2 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