title: Background image is not working in Android Studio. (tried all previous solutions given on StackOverflow)
body: <p>I am making an coffee ordering app in which i want to put a background image covering the whole screen completely.(Note:The images are present in the drawable folder put by me from the google).</p>
  
  <p>I tried to put background image using the layout <code>android:background="@drawable/cof"</code> but it's not working. It is showing this error:</p>
  
  <p><a href="https://i.stack.imgur.com/62zHo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/62zHo.png" alt="enter image description here"></a></p>
  
  <p>I even tried putting different images in it but it is not working and showing the following error. </p>
  
  <p>Layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:layout_margin="16dp"
      android:background="@drawable/cof"
  
      &gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="20sp"
          android:text="QUANTITY"
          android:layout_marginBottom="16dp"
          /&gt;
       &lt;LinearLayout
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:orientation="horizontal"
           &gt;
          &lt;Button
              android:layout_width="48dp"
              android:layout_height="48dp"
              android:text="-"
              android:onClick="decrement"/&gt;
           &lt;TextView
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:textSize="18sp"
               android:layout_marginLeft="8dp"
               android:layout_marginRight="8dp"
               android:text="2"
               /&gt;
           &lt;Button
               android:layout_width="48dp"
               android:layout_height="48dp"
               android:text="+"
               android:onClick="increment"
               /&gt;
  
       &lt;/LinearLayout&gt;
  
       &lt;TextView
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:textSize="25sp"
           android:layout_marginTop="16dp"
           android:text="Price"
           android:layout_marginBottom="16dp"/&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="20sp"
          android:text="Rs 10"/&gt;
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="16dp"
          android:textSize="28sp"
          android:text="ORDER"
          android:onClick="submitOrder"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>