title: Android error: AAPT: error: resource color/colorPrimary not found
body: <p>I upgraded my project ( Ionic Framework ) from Android to AndroidX. After that, my project started throwing errors while rebuilding. <strong>It is giving &quot;AAPT: error: resource color/colorPrimary (aka io.aide.aide:color/colorPrimary) not found.&quot; from file &quot;{Project}\android\app\src\main\res\values\styles.xml&quot;</strong>.</p>
  <p>Here is my <code>styles.xml</code> file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
  
      &lt;!-- Base application theme. --&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;style name=&quot;AppTheme.NoActionBar&quot; parent=&quot;Theme.AppCompat.NoActionBar&quot;&gt;
          &lt;item name=&quot;windowActionBar&quot;&gt;false&lt;/item&gt;
          &lt;item name=&quot;windowNoTitle&quot;&gt;true&lt;/item&gt;
          &lt;item name=&quot;android:background&quot;&gt;@null&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name=&quot;AppTheme.NoActionBarLaunch&quot; parent=&quot;AppTheme.NoActionBar&quot;&gt;
          &lt;item name=&quot;android:background&quot;&gt;@drawable/splash&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>The folder of styles.xml is as below</p>
  <p><a href="https://i.stack.imgur.com/sIicG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sIicG.png" alt="enter image description here" /></a></p>
  <p>In the below post, they suggested to create a color file.
  <a href="https://stackoverflow.com/questions/47382665/error387-5-error-resource-color-colorprimary-aka-com-example-kubix-r3vir3d">Error:(387, 5) error: resource color/colorPrimary (aka com.example.kubix.r3vir3dv3:color/colorPrimary) not found</a></p>
  <p>I am beginner and I do not know what should be in the color file.</p>
  <p>Can any one give me any suggestions to overcome this problem?</p>