java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.personal.project/com.my.personal.project.MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    My app is crashing when I use proguard obfuscation (Android Jack compiler)

    Stack Overflow | 6 months ago | Pelayo Rodriguez
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.personal.project/com.my.personal.project.MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView

    Root Cause Analysis

    1. java.lang.VerifyError

      Rejecting class android.support.v7.widget.r because it failed compile-time verification (declaration of 'android.support.v7.widget.r' appears in /data/app/com.my.personal.project-2/base.apk)

      at android.support.v7.widget.bw.<init>()
    2. Android v7
      bw.<init>
      1. android.support.v7.widget.bw.<init>(Unknown Source)
      1 frame
    3. android.support.design
      NavigationMenuView.<init>
      1. android.support.design.internal.NavigationMenuView.<init>(Unknown Source)
      1 frame