title: Why am I getting "Android resource linking failed" in my styles.xml file (Android Studio)
body: <p>Hi I'm working in Android Studio and trying to create a background for my splash screen that uses my 'rideshare_splash' image as the background as in the tutorial I've been following at this timestamp (<a href="https://youtu.be/144TuYxEu2M?t=572" rel="nofollow noreferrer">https://youtu.be/144TuYxEu2M?t=572</a>) but when I go to build I get an error saying 'Android resource linking failed'.</p>
  <p>I've looked at similarly titled threads on here but the most relevant ones suggested using <em>attr name</em> instead which didn't work as it was outdated, then I tried the suggestion of having <em>android:colorPrimary</em> but that didn't help either so I thought I'd try asking my own question.</p>
  <p><strong>styles.xml Code</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;resources&gt;
  
      &lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.Light.DarkActionBar&quot;&gt;
          &lt;item name=&quot;colorPrimary&quot;&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryDark&quot;&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name=&quot;colorAccent&quot;&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  <p><strong>Error message (copy &amp; pasted from build console)</strong></p>
  <pre><code>What went wrong:
  Execution failed for task ':app:processDebugResources'.
   A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      Android resource linking failed
       C:\Users\mecha\AndroidStudioProjects\FYP_RideShareApp\app\src\main\res\values\styles.xml:4:5-8:13: AAPT: error: resource color/colorPrimary (aka codebymech.fyprideshareapp:color/colorPrimary) not found.
           
       C:\Users\mecha\AndroidStudioProjects\FYP_RideShareApp\app\src\main\res\values\styles.xml:4:5-8:13: AAPT: error: resource color/colorPrimaryDark (aka codebymech.fyprideshareapp:color/colorPrimaryDark) not found.
           
       C:\Users\mecha\AndroidStudioProjects\FYP_RideShareApp\app\src\main\res\values\styles.xml:4:5-8:13: AAPT: error: resource color/colorAccent (aka codebymech.fyprideshareapp:color/colorAccent) not found.
  </code></pre>
  <p><strong>Extra information</strong></p>
  <p>My idea is that there's something wrong with how the tutorial has uses @color/coolorPrimary (as well as colorPrimaryDark and colorAccent) or maybe something about this in the tutorial is outdated as it is a couple months old?</p>
  <p><em>Also a side note: when I opened Android Studio there was no styles.xml only colors, strings and themes .xml files so I had to add my own styles.xml file to follow as the tutorial was doing so maybe that has had an effect?</em></p>