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

Stack Overflow | Rayan | 4 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

    How can I put Google Maps in the fragment? - ViewPagerAdapter

    Stack Overflow | 4 months ago | Rayan
    android.view.InflateException: Binary XML file line #12: Error inflating class fragment
  2. 0

    Forceclose occuring while opening the application

    Stack Overflow | 3 years ago | Kamalone
    android.view.InflateException: Binary XML file line #12: Error inflating class fragment
  3. 0

    MapFragment suddenly crashed my previously run OK after updating to kitkat sdk

    Stack Overflow | 3 years ago | slumberj
    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

    Can any one tell me what this logcat is demanding for? Fragments in android

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

    Reloading a fragment Error [android.view.InflateException]

    Stack Overflow | 3 years ago | user3705918
    android.view.InflateException: Binary XML file line #12: Error inflating class fragment
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 #12: Error inflating class fragment

    at android.view.LayoutInflater.createViewFromTag()
  2. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
    2. android.view.LayoutInflater.inflate(LayoutInflater.java:469)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    3 frames
  3. com.example.mg
    MapFragment.onCreateView
    1. com.example.mg.tryappkillan.form.MapFragment.onCreateView(MapFragment.java:42)
    1 frame
  4. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.Fragment.performCreateView(Fragment.java:2080)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108)
    3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
    5. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1638)
    6. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143)
    8. android.support.v4.view.ViewPager.populate(ViewPager.java:1240)
    9. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
    10. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)
    10 frames
  5. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:16518)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    2 frames
  6. android.support.design
    CoordinatorLayout.onMeasure
    1. android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:700)
    2. android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1364)
    4. android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:765)
    4 frames
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:16518)
    2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719)
    3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:455)
    4. android.view.View.measure(View.java:16518)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    6 frames
  8. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  9. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:16518)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    6. android.view.View.measure(View.java:16518)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    9. android.view.View.measure(View.java:16518)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    14. android.view.View.measure(View.java:16518)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    16 frames
  10. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291)
    1 frame
  11. Android Platform
    Choreographer.doFrame
    1. android.view.View.measure(View.java:16518)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1916)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1113)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1295)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    9. android.view.Choreographer.doFrame(Choreographer.java:544)
    9 frames