title: Emulator Error NavigationDrawer
body: <p>I have a problem when I start my app on the emulator. When I launch the app on my device, it works properly. Instead, when the emulator startup does not work. The error that comes to me is this:</p>
  
  <pre><code>04-05 15:31:54.570 22596-22596/com.application.marcocicala.campaniacentrocommerciale E/AndroidRuntime: FATAL EXCEPTION: main
     Process: com.application.marcocicala.campaniacentrocommerciale, PID: 22596
     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.application.marcocicala.campaniacentrocommerciale/com.application.marcocicala.campaniacentrocommerciale.MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
         at android.app.ActivityThread.-wrap11(ActivityThread.java)
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
         at android.os.Handler.dispatchMessage(Handler.java:102)
         at android.os.Looper.loop(Looper.java:148)
         at android.app.ActivityThread.main(ActivityThread.java:5417)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      Caused by: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
         at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276)
         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
         at com.application.marcocicala.campaniacentrocommerciale.MainActivity.onCreate(MainActivity.java:39)
         at android.app.Activity.performCreate(Activity.java:6237)
         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
         at android.app.ActivityThread.-wrap11(ActivityThread.java) 
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
         at android.os.Handler.dispatchMessage(Handler.java:102) 
         at android.os.Looper.loop(Looper.java:148) 
         at android.app.ActivityThread.main(ActivityThread.java:5417) 
         at java.lang.reflect.Method.invoke(Native Method) 
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
      Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
         at android.view.LayoutInflater.createView(LayoutInflater.java:645)
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
         at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) 
         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
         at com.application.marcocicala.campaniacentrocommerciale.MainActivity.onCreate(MainActivity.java:39) 
         at android.app.Activity.performCreate(Activity.java:6237) 
         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
         at android.app.ActivityThread.-wrap11(ActivityThread.java) 
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
         at android.os.Handler.dispatchMessage(Handler.java:102) 
         at android.os.Looper.loop(Looper.java:148) 
         at android.app.ActivityThread.main(ActivityThread.java:5417) 
         at java.lang.reflect.Method.invoke(Native Method) 
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
      Caused by: java.lang.reflect.InvocationTargetException
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at android.view.LayoutInflater.createView(LayoutInflater.java:619)
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) 
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
         at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) 
         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
         at com.application.marcocicala.campaniacentrocommerciale.MainActivity.onCreate(MainActivity.java:39) 
         at android.app.Activity.performCreate(Activity.java:6237) 
         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
         at android.app.ActivityThread.-wrap11(ActivityThread.java) 
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
         at android.os.Handler.dispatchMessage(Handler.java:102) 
         at android.os.Looper.loop(Looper.java:148) 
         at android.app.ActivityThread.main(ActivityThread.java:5417) 
         at java.lang.reflect.Method.invoke(Native Method) 
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
      Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class &lt;unknown&gt;
         at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
         at android.support.design.internal.NavigationMenuPresenter.inflateHeaderView(NavigationMenuPresenter.java:189)
         at android.support.design.widget.NavigationView.inflateHeaderView(NavigationView.java:258)
         at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:173)
         at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:95)
         at java.lang.reflect.Constructor.newInstance(Native Method) 
         at android.view.LayoutInflater.createView(LayoutInflater.java:619) 
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) 
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
         at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) 
         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
         at com.application.marcocicala.campaniacentrocommerciale.MainActivity.onCreate(MainActivity.java:39) 
         at android.app.Activity.performCreate(Activity.java:6237) 
         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
         at android.app.ActivityThread.-wrap11(ActivityThread.java) 
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
         at android.os.Handler.dispatchMessage(Handler.java:102) 
         at android.os.Looper.loop(Looper.java:148) 
         at android.app.ActivityThread.main(ActivityThread.java:5417) 
         at java.lang.reflect.Method.invoke(Native Method) 
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
      Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class &lt;unknown&gt;
         at android.view.LayoutInflater.createView(LayoutInflater.java:645)
         at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
         at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
         at android.support.design.internal.NavigationMenuPresenter.inflateHeaderView(NavigationMenuPresenter.java:189) 
         at android.support.design.widget.NavigationView.inflateHeaderView(NavigationView.java:258) 
         at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:173) 
         at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:95) 
         at java.lang.reflect.Constructor.newInstance(Native Method) 
         at android.view.LayoutInflater.createView(LayoutInflater.java:619) 
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) 
         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
         at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
         at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) 
         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
         at com.application.marcocicala.campaniacentrocommerciale.MainActivity.onCreate(MainActivity.java:39) 
         at android.app.Activity.performCreate(Activity.java:6237) 
         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
         at android.app.ActivityThread.-wrap11(ActivityThread.java) 
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
         at android.os.Handler.dispatchMessage(Handler.java:102) 
         at android.os.Looper.loop(Looper.java:148) 
         at android.app.ActivityThread.main(ActivityThread.java:5417) 
         at java.lang.reflect.Method.invoke(Native Method) 
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
      Caused by: java.lang.reflect.InvocationTargetException
         at java.lang.reflect.Constructor.newInstance(Native Method)
      at android.view.L
  </code></pre>
  
  <p>This is my XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;include
      layout="@layout/app_bar_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;android.support.design.widget.NavigationView
      android:id="@+id/nav_view"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_gravity="start"
      android:fitsSystemWindows="true"
      app:headerLayout="@layout/nav_header_main"
      app:menu="@menu/activity_main_drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>