android.view.InflateException: Binary XML file line #48: Error inflating class android.support.design.widget.NavigationView

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

Samebug tips

,

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.

Solutions on the web

via Stack Overflow by Joseph Joey
, 1 year ago
Binary XML file line #48: Error inflating class android.support.design.widget.NavigationView
via Stack Overflow by Mohammed Atif
, 2 years ago
Binary XML file line #11: Error inflating class android.support.design.widget.NavigationView raw android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2303) here is the log cat of XIOMI device java.lang.RuntimeException: Unable
via GitHub by akshay-shah
, 1 year ago
Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView
via Stack Overflow by thespindoctor
, 5 months ago
Binary XML file line #22: Error inflating class fragment
via mojijs.com by Unknown author, 2 years ago
Binary XML file line #7: Error inflating class android.support.v7.widget.RecyclerView
via Google Groups by Josue C.P., 2 years ago
Binary XML file line #1: Error inflating class FragmentTabHost
java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
at java.lang.Class.getConstructor(Class.java:531)
at java.lang.Class.getConstructor(Class.java:495)
at android.view.LayoutInflater.createView(LayoutInflater.java:580)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.support.design.internal.NavigationMenuPresenter.inflateHeaderView(NavigationMenuPresenter.java:197)
at android.support.design.widget.NavigationView.inflateHeaderView(NavigationView.java:265)
at android.support.design.widget.NavigationView.(NavigationView.java:175)
at android.support.design.widget.NavigationView.(NavigationView.java:97)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at com.example.joey.eatwhere.Activities.MainActivity.onCreate(MainActivity.java:34)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5389)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

Users with the same issue

25 times, 2 months ago
2 times, 7 months ago
12 times, 8 months ago
Once, 10 months ago
69 times, 1 year ago

Write tip

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