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 Stack Overflow by Pankaj Bhardwaj
, 1 year ago
Binary XML file line #2: Error inflating class <unknown>
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 Stack Overflow by dhomes
, 2 years ago
Binary XML file line #2: Error inflating class &lt;unknown&gt;
via Stack Overflow by Marshall
, 2 years ago
Binary XML file line #1: Error inflating class <unknown>
via GitHub by capnfabs
, 1 year ago
Binary XML file line #4: Error inflating class <unknown>
android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
at android.content.res.Resources.loadDrawable(Resources.java:1927)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.(View.java:3330)
at android.view.View.(View.java:3259)
at android.view.ViewGroup.(ViewGroup.java:425)
at android.widget.RelativeLayout.(RelativeLayout.java:210)
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 android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at dhritiapps.tulsiramayan.ActivityName.onOptionsItemSelected(ActivityName.java:423)
at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:153)
at android.view.View.performClick(View.java:4204)
at android.view.View$PerformClick.run(View.java:17355)
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

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

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