android.view.InflateException: Binary XML file line #2: 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 QuantumBadger
, 1 year ago
Binary XML file line #2: Error inflating class TextView
via Stack Overflow by youssoua
, 2 years ago
via Stack Overflow by user2916610
, 1 year ago
Binary XML file line #2: Error inflating class com.test.conversation.ConversationListItem
via Stack Overflow by DenisGL
, 2 years ago
via Stack Overflow by abilican
, 1 year ago
Binary XML file line 2: Error inflating class fragment
via Stack Overflow by dinesh707
, 2 years ago
Binary XML file line #2: Error inflating class menu
org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
at android.content.res.Resources.loadDrawable(Resources.java:1955)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.TextView.(TextView.java:757)
at android.support.v7.widget.AppCompatTextView.(AppCompatTextView.java:60)
at android.support.v7.widget.AppCompatTextView.(AppCompatTextView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:980)
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 org.quantumbadger.redreader.fragments.PostListingFragment$1.handleMessage(PostListingFragment.java:141)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

Users with the same issue

5 times, 6 months ago
2 times, 10 months ago
8 times, 10 months ago
5 times, 11 months ago
2 times, 1 year ago

Write tip

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