title: Android.Views.InflateException when changing ImageView
body: <p>I am getting the title error when starting my <code>Xamarin.Android</code> application. I started from the "Navigation Drawer App" template.</p>
  
  <p>The error is thrown in <code>MainActivity.cs</code> on line <code>SetContentView(Resource.Layout.activity_main);</code> in the <code>OnCreate</code> method:</p>
  
  <pre><code>public class MainActivity : AppCompatActivity, NavigationView.IOnNavigationItemSelectedListener
      {
          readonly DataAccess dataAccess = new DataAccess();
          private List&lt;ResultSummary&gt; data;
          private ResultsSummaryListAdapter adapter;
  
          protected override async void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
              Xamarin.Essentials.Platform.Init(this, savedInstanceState);
              SetContentView(Resource.Layout.activity_main); //Error here
              Android.Support.V7.Widget.Toolbar toolbar = FindViewById&lt;Android.Support.V7.Widget.Toolbar&gt;(Resource.Id.toolbar);
              SetSupportActionBar(toolbar);
  
              DrawerLayout drawer = FindViewById&lt;DrawerLayout&gt;(Resource.Id.drawer_layout);
              ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, Resource.String.navigation_drawer_open, Resource.String.navigation_drawer_close);
              drawer.AddDrawerListener(toggle);
              toggle.SyncState();
  
              NavigationView navigationView = FindViewById&lt;NavigationView&gt;(Resource.Id.nav_view);
              navigationView.SetNavigationItemSelectedListener(this);
          }
  
         //Other default code
  
  }
  </code></pre>
  
  <p>This starting occurring after I tried to change some of the default images. As a result, I have tracked down the issue to the <code>ImageView</code> in <code>nav_header_main.xml</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="@dimen/nav_header_height"
      android:background="@drawable/side_nav_bar"
      android:gravity="bottom"
      android:orientation="vertical"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:theme="@style/ThemeOverlay.AppCompat.Dark"&gt;
  
      //If I remove this ImageView it works fine.
      &lt;ImageView
          android:id="@+id/imageView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingTop="@dimen/nav_header_vertical_spacing"
          app:srcCompat="@mipmap/ic_launcher" /&gt;
  
      &lt;TextView
          android:id="@+id/RunnerName"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingTop="@dimen/nav_header_vertical_spacing"
          android:text="Runner Name Here" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>If I replace the images in the <code>mipmap-</code> folders with the defaults, it works again.</p>
  
  <p>From what I've read the issue is because one of the images is too large. Is that correct, or is it possibly something else wrong the image(s)?</p>
  
  <p>This is a bit confusing because I created my images from <a href="https://romannurik.github.io/AndroidAssetStudio/index.html" rel="nofollow noreferrer">Android Asset Studio</a> using the "Launcher icon generator" so I would expect that creates appropriately sized icons. I replaced the images with the same name so it's not a referencing error; if it was I'd get a different exception.</p>
  
  <p>Any ideas on what's going on here?</p>