title: How to troubleshoot: AAPT: error: is incompatible with attribute src (attr) reference|color
body: <p>I am new to Android dev and am working on my first app.  I have been running into trouble trying to get an image view set up with my own image (stock photos on studio are working fine), and am getting the following error:</p>
  <p>AAPT: error: '/home/joshua/AndroidStudioProjects/WSC/app/src/main/res/mipmap-xxxhdpi/wsc_foreground.png' is incompatible with attribute src (attr) reference|color.</p>
  <p>I have researched around to even try to understand what this error is saying, and I think it is having trouble linking some file/resource?</p>
  <p>I uploaded a .jpg using the add image asset option in android studio.  I added a color background to the image, which was a hex number I selected.</p>
  <p>I am not getting any errors or warnings until I build, at which point the build fails.</p>
  <p>**Can someone please explain:</p>
  <ol>
  <li>What this error means.</li>
  <li>How to troubleshoot this.</li>
  <li>Where my mistake lies.**</li>
  </ol>
  <p>I have attached the (hopefully sufficiently) relevant XML code.</p>
  <p>Here is the image view inside of my fragment_first.xml, which is inside layout:</p>
  <pre><code>&lt;ImageView
          android:id=&quot;@+id/wsc_image&quot;
          android:layout_width=&quot;930dp&quot;
          android:layout_height=&quot;585dp&quot;
          android:layout_marginTop=&quot;44dp&quot;
          android:contentDescription=&quot;@string/wsc_image_description&quot;
          android:src=&quot;/home/joshua/AndroidStudioProjects/WSC/app/src/main/res/mipmap-xxxhdpi/wsc_foreground.png&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;@+id/textview_first&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/textview_first&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/textview_first&quot;
          app:layout_constraintVertical_bias=&quot;0.0&quot; /&gt;
  </code></pre>
  <p>I don't have an XML for the wsc_foreground.png, but do have a wsc.xml.  I tried adding the full path in the wsc.xml for wsc_foreground.png, but this did not change anything.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;adaptive-icon xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;background android:drawable=&quot;@color/wsc_background&quot;/&gt;
      &lt;foreground android:drawable=&quot;/home/joshua/AndroidStudioProjects/WSC/app/src/main/res/mipmap-xxxhdpi/wsc_foreground.png&quot;/&gt;
  &lt;/adaptive-icon&gt;
  </code></pre>
  <p>My apologies if this is a dumb question and/or not clear.  Please let me know in the comments if I need to clarify any of this.</p>
  <p>Thanks!</p>