title: App crashes when adding an ImageView?
body: <p>App crashes whenever I try to add an image in Android Studio 3. Please Help.</p>
  
  <p>LOGCAT:</p>
  
  <blockquote>
    <p>12-02 01:13:14.289 10530-10530/? E/AndroidRuntime: FATAL EXCEPTION:
    main Process: com.divyam.demo2, PID: 10530 java.lang.RuntimeException:
    Unable to start activity
    ComponentInfo{com.divyam.demo2/com.divyam.demo2.MainActivity}:
    android.view.InflateException: Binary XML file line #0: Binary XML
    file line #0: Error inflating class ImageView 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 #0: Binary XML
    file line #0: Error inflating class ImageView 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.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
    at
    android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
    at com.divyam.demo2.MainActivity.onCreate(MainActivity.java:16) 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 #0:
    Error inflating class ImageView at
    android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:782)
    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.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
    at
    android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
    at com.divyam.demo2.MainActivity.onCreate(MainActivity.java:16) 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.content.res.Resources$NotFoundException: Resource
    ID #0x7f060054 at
    android.content.res.Resources.getValue(Resources.java:1351) at
    android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:330)
    at
    android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:195)
    at
    android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)
    at
    android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:100)
    at
    android.support.v7.widget.AppCompatImageHelper.loadFromAttributes(AppCompatImageHelper.java:58)
    at
    android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:78)
    at
    android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:68)
    at
    android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106) at
    android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
    at
    android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
    at
    android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:746)
    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.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
    at
    android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
    at com.divyam.demo2.MainActivity.onCreate(MainActivity.java:16) 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)  }</p>
  </blockquote>
  
  <p>activity_main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.divyam.demo2.MainActivity"
      tools:layout_editor_absoluteY="81dp"&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="344dp"
          android:text="Button"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintHorizontal_bias="0.498"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;ImageView
          android:id="@+id/imageView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="18dp"
          app:layout_constraintBottom_toBottomOf="@+id/button2"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:srcCompat="@drawable/download" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Main Activity.java</p>
  
  <pre><code>    public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }}
  </code></pre>
  
  <p>When I delete the ImageView the app works just fine.
  I have tried everything resizing the image and reinstalling android studio.</p>
  
  <p>Can anyone figure out the problem? </p>