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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ramadeef
, 1 year ago
Binary XML file line #1: Error inflating class TextView
via Stack Overflow by NiTiN
, 2 years ago
Binary XML file line #1: Error inflating class linearlayout
via Stack Overflow by stallion
, 2 years ago
Binary XML file line #6: Error inflating class com.i10n.panel.TransparentPanel
via Stack Overflow by hannahharkness
, 2 years ago
Binary XML file line #3: Error inflating class library.MonthView
android.view.InflateException: Binary XML file line #1: Error inflating class TextView
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
at android.view.View.(View.java:3354)
at android.widget.TextView.(TextView.java:455)
at android.support.v7.widget.AppCompatTextView.(AppCompatTextView.java:59)
at android.support.v7.widget.AppCompatTextView.(AppCompatTextView.java:55)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:371)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
at com.braintreepayments.cardform.utils.ExpirationDateItemAdapter.getView(ExpirationDateItemAdapter.java:75)
at android.widget.AbsListView.obtainView(AbsListView.java:2271)
at android.widget.GridView.onMeasure(GridView.java:1046)
at android.view.View.measure(View.java:15323)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4924)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1421)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:698)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:579)
at android.view.View.measure(View.java:15323)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1037)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:581)
at android.view.View.measure(View.java:15323)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4924)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:315)
at android.view.View.measure(View.java:15323)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4924)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:315)
at android.view.View.measure(View.java:15323)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4924)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:315)
at android.view.View.measure(View.java:15323)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1854)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1102)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1275)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4218)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
at android.view.Choreographer.doCallbacks(Choreographer.java:555)
at android.view.Choreographer.doFrame(Choreographer.java:525)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4744)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
15 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.