android.view.InflateException: Binary XML file line #2: 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 GitHub by QuantumBadger
, 1 year ago
Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by dhomes
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown&gt;
via Stack Overflow by zanky
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown&gt;
via Stack Overflow by Unknown author, 2 years ago
Binary XML file line #2: Error inflating class <unknown>
via GitHub by capnfabs
, 1 year ago
Binary XML file line #4: Error inflating class <unknown>
via Stack Overflow by Alesqui
, 1 year ago
Binary XML file line #21: Error inflating class <unknown>
android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
at android.content.res.Resources.loadDrawable(Resources.java:1958)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.(View.java:3330)
at android.view.ViewGroup.(ViewGroup.java:431)
at android.widget.LinearLayout.(LinearLayout.java:176)
at android.widget.LinearLayout.(LinearLayout.java:172)
at java.lang.reflect.Constructor.constructNative(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at org.quantumbadger.redreader.reddit.prepared.markdown.MarkdownParagraphGroup.buildView(MarkdownParagraphGroup.java:187)
at org.quantumbadger.redreader.reddit.prepared.RedditRenderableComment.getBody(RedditRenderableComment.java:197)
at org.quantumbadger.redreader.views.RedditCommentView.reset(RedditCommentView.java:195)
at org.quantumbadger.redreader.reddit.RedditCommentListItem.onBindViewHolder(RedditCommentListItem.java:200)
at org.quantumbadger.redreader.adapters.GroupedRecyclerViewAdapter.onBindViewHolder(GroupedRecyclerViewAdapter.java:113)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)
at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5504)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4741)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1482)
at android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
at android.view.Choreographer.doCallbacks(Choreographer.java:562)
at android.view.Choreographer.doFrame(Choreographer.java:531)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
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

17 times, 8 months ago
Once, 1 year ago
28 times, 7 months ago
7 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
26 more bugmates

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