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

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 Stack Overflow by dev_android
, 1 year ago
Binary XML file line #1: Error inflating class <unknown>
via GitHub by msealy
, 2 years ago
Binary XML file line #17: Error inflating class <unknown>
via Stack Overflow by sam
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown&gt;
via Stack Overflow by Amir Sadegh
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown&gt;
via Google Groups by vor nach, 5 months ago
Binary XML file line #21: Error inflating class <unknown>
via Stack Overflow by Angel
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown
android.content.res.Resources$NotFoundException: File res/color/list_selector_color.xml from drawable resource ID #0x7f070000
at android.content.res.Resources.loadDrawable(Resources.java:1693)
at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
at android.view.View.(View.java:1850)
at android.widget.TextView.(TextView.java:335)
at android.widget.TextView.(TextView.java:329)
at java.lang.reflect.Constructor.constructNative(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.widget.ResourceCursorAdapter.newView(ResourceCursorAdapter.java:79)
at android.widget.SimpleCursorAdapter.newView(SimpleCursorAdapter.java:96)
at android.widget.CursorAdapter.getView(CursorAdapter.java:182)
at android.widget.AbsListView.obtainView(AbsListView.java:1274)
at android.widget.ListView.makeAndAddView(ListView.java:1668)
at android.widget.ListView.fillDown(ListView.java:637)
at android.widget.ListView.fillFromTop(ListView.java:694)
at android.widget.ListView.layoutChildren(ListView.java:1521)
at android.widget.AbsListView.onLayout(AbsListView.java:1113)
at android.view.View.layout(View.java:6830)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1108)
at android.widget.LinearLayout.onLayout(LinearLayout.java:920)
at android.view.View.layout(View.java:6830)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
at android.widget.LinearLayout.onLayout(LinearLayout.java:918)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
at android.widget.LinearLayout.onLayout(LinearLayout.java:918)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
at android.widget.LinearLayout.onLayout(LinearLayout.java:918)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:6830)
at android.view.ViewRoot.performTraversals(ViewRoot.java:996)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4363)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)

Users with the same issue

28 times, 9 months ago
17 times, 10 months ago
7 times, 11 months ago
Once, 1 year ago
Once, 1 year ago

Write tip

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