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

Stack Overflow | Joseph Joey | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Nav Drawer, TabLayout, ViewPager, Hamburger Icon Application

    Stack Overflow | 5 months ago | Joseph Joey
    android.view.InflateException: Binary XML file line #48: Error inflating class android.support.design.widget.NavigationView
  2. 0

    The android custom view error : android.view.InflateException

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pooyafayyaz.first_photo_edit_test/com.example.pooyafayyaz.first_photo_edit_test.second}: android.view.InflateException: Binary XML file line #2: Error inflating class com.example.pooyafayyaz.first_photo_edit_test.CanvasView
  3. 0

    Inflating Custom Linear Layouts at runtime

    Stack Overflow | 2 years ago | asdec90
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.goldvip.crownit/com.goldvip.crownit.LandingPageActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class com.goldvip.interfaces.LandingPageLinearLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    InflateException error

    Stack Overflow | 2 years ago | user3142434
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bouncingball2/com.example.bouncingball2.GameBoard}: android.view.InflateException: Binary XML file line #22: Error inflating class com.example.bouncingball2.DrawingView
  6. 0

    Getting Exception when using a CircularCountdown custom view in android

    Stack Overflow | 2 years ago | Jayakarthik Ganesan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jayakarthik.sampleanim/com.example.jayakarthik.sampleanim.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class com.example.jayakarthik.sampleanim.CircularCountdown
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodException

    <init> [class android.content.Context, interface android.util.AttributeSet]

    at java.lang.Class.getConstructor()
  2. Java RT
    Class.getConstructor
    1. java.lang.Class.getConstructor(Class.java:531)
    2. java.lang.Class.getConstructor(Class.java:495)
    2 frames
  3. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:580)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    5 frames
  4. android.support.design
    NavigationView.<init>
    1. android.support.design.internal.NavigationMenuPresenter.inflateHeaderView(NavigationMenuPresenter.java:197)
    2. android.support.design.widget.NavigationView.inflateHeaderView(NavigationView.java:265)
    3. android.support.design.widget.NavigationView.<init>(NavigationView.java:175)
    4. android.support.design.widget.NavigationView.<init>(NavigationView.java:97)
    4 frames
  5. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.newInstance(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
    2 frames
  6. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:607)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    6 frames
  7. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  8. com.example.joey
    MainActivity.onCreate
    1. com.example.joey.eatwhere.Activities.MainActivity.onCreate(MainActivity.java:34)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5990)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
    5. android.app.ActivityThread.access$800(ActivityThread.java:156)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:211)
    9. android.app.ActivityThread.main(ActivityThread.java:5389)
    9 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
    2 frames