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

Stack Overflow | Abhineet Nigam | 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

    My app keeps crashing

    Stack Overflow | 10 months ago | Abhineet Nigam
    android.view.InflateException: Binary XML file line #2: Error inflating class textview
  2. 0

    [Q&A] [ROM][N5110]Cyanogenmod 12.0[12/12… - Pg. 4 | Samsung Galaxy Note 8.0 | XDA Forums

    xda-developers.com | 2 years ago
    android.view.InflateException: Binary XML file line #20: Error inflating class <unknown> at android.view.LayoutInflater.createView(LayoutInfla ter.java:633) at com.android.internal.policy.impl.PhoneLayoutInflat er.onCreateView(PhoneLayoutInflater.java:55) at android.view.LayoutInflater.onCreateView(LayoutInf later.java:682) at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:741) at android.view.LayoutInflater.inflate(LayoutInflater .java:482) at android.view.LayoutInflater.inflate(LayoutInflater .java:414) at android.preference.Preference.onCreateView(Prefere nce.java:510) at android.preference.Preference.getView(Preference.j ava:487) at android.preference.PreferenceGroupAdapter.getView( PreferenceGroupAdapter.java:246) at android.widget.AbsListView.obtainView(AbsListView. java:2349) at android.widget.ListView.makeAndAddView(ListView.ja va:1864) at android.widget.ListView.fillDown(ListView.java:698 ) at android.widget.ListView.fillSpecific(ListView.java :1356) at android.widget.ListView.layoutChildren(ListView.ja va:1651) at android.widget.AbsListView.onLayout(AbsListView.ja va:2153)
  3. 0

    FIX BUG获取theme中自定义textColor时报的错误 - 知识界

    sgjinhao.com | 1 year ago
    android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.Button 07-13 18:03:50.130: W/System.err(15302):     at android.view.LayoutInflater.createView(LayoutInflater.java:606) 07-13 18:03:50.130: W/System.err(15302):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 07-13 18:03:50.140: W/System.err(15302):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653) 07-13 18:03:50.140: W/System.err(15302):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678) 07-13 18:03:50.140: W/System.err(15302):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:739) 07-13 18:03:50.140: W/System.err(15302):     at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 07-13 18:03:50.140: W/System.err(15302):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 07-13 18:03:50.140: W/System.err(15302):     at com.turtle.wordlock.SettingLocalBookFragment$MyListviewAdapter.getView(SettingLocalBookFragment.java:104) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.AbsListView.obtainView(AbsListView.java:2038) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.ListView.makeAndAddView(ListView.java:1772) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.ListView.fillDown(ListView.java:672) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.ListView.fillFromTop(ListView.java:732) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.ListView.layoutChildren(ListView.java:1625) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.AbsListView.onLayout(AbsListView.java:1868) 07-13 18:03:50.140: W/System.err(15302):     at android.view.View.layout(View.java:11303) 07-13 18:03:50.140: W/System.err(15302):     at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.RelativeLayout.onLayout(RelativeLayout.java:925) 07-13 18:03:50.140: W/System.err(15302):     at android.view.View.layout(View.java:11303) 07-13 18:03:50.140: W/System.err(15302):     at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-13 18:03:50.140: W/System.err(15302):     at android.view.View.layout(View.java:11303) 07-13 18:03:50.140: W/System.err(15302):     at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-13 18:03:50.140: W/System.err(15302):     at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-13 18:03:50.140: W/System.err(15302):     at android.view.View.layout(View.java:11303)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. android.view.InflateException

      Binary XML file line #2: Error inflating class textview

      at android.view.LayoutInflater.createViewFromTag()
    2. Android Platform
      ViewGroup.layout
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
      2. android.view.LayoutInflater.inflate(LayoutInflater.java:482)
      3. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
      4. android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:371)
      5. android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
      6. android.widget.AbsListView.obtainView(AbsListView.java:2347)
      7. android.widget.ListView.makeAndAddView(ListView.java:1864)
      8. android.widget.ListView.fillDown(ListView.java:698)
      9. android.widget.ListView.fillFromTop(ListView.java:759)
      10. android.widget.ListView.layoutChildren(ListView.java:1673)
      11. android.widget.AbsListView.onLayout(AbsListView.java:2151)
      12. android.view.View.layout(View.java:15689)
      13. android.view.ViewGroup.layout(ViewGroup.java:5040)
      14. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      15. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      16. android.view.View.layout(View.java:15689)
      17. android.view.ViewGroup.layout(ViewGroup.java:5040)
      17 frames
    3. 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
    4. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:15689)
      2. android.view.ViewGroup.layout(ViewGroup.java:5040)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15689)
      6. android.view.ViewGroup.layout(ViewGroup.java:5040)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      10. android.view.View.layout(View.java:15689)
      11. android.view.ViewGroup.layout(ViewGroup.java:5040)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      14. android.view.View.layout(View.java:15689)
      15. android.view.ViewGroup.layout(ViewGroup.java:5040)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      19. android.view.View.layout(View.java:15689)
      20. android.view.ViewGroup.layout(ViewGroup.java:5040)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      23. android.view.View.layout(View.java:15689)
      24. android.view.ViewGroup.layout(ViewGroup.java:5040)
      25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2116)
      26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1873)
      27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)
      28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)
      29. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
      30. android.view.Choreographer.doCallbacks(Choreographer.java:580)
      31. android.view.Choreographer.doFrame(Choreographer.java:550)
      32. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
      33. android.os.Handler.handleCallback(Handler.java:739)
      34. android.os.Handler.dispatchMessage(Handler.java:95)
      35. android.os.Looper.loop(Looper.java:135)
      36. android.app.ActivityThread.main(ActivityThread.java:5343)
      36 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames