No resource found that matches the given name:attr 'colorAccent'
<p>I got a bit of issue regarding about the following there.</p>
<blockquote>
<p>No resource found that matches the given name: attr 'colorAccent'.</p>
<p>No resource found that matches the given name: attr 'colorPrimary'.</p>
<p>No resource found that matches the given name: attr 'colorPrimaryDark'.</p>
</blockquote>
<p>I did a bit of research and most of the post recommend using api level 21.
My situation here is software has to support from API level 16.</p>
<p>and the following is my manifest file</p>
<pre><code>   &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
package=&quot;testproj.com.xxx.testproj&quot;&gt;

&lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;
&lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;
&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;

&lt;application
    android:allowBackup=&quot;true&quot;
    android:icon=&quot;@mipmap/ic_launcher&quot;
    android:label=&quot;@string/app_name&quot;
    android:theme=&quot;@style/Theme.Base&quot;&gt;

    &lt;meta-data android:name=&quot;com.google.android.gms.version&quot; android:value=&quot;@integer/google_play_services_version&quot; /&gt;
    &lt;activity android:name=&quot;.Activity.MainActivity&quot;&gt;
        &lt;intent-filter&gt;
            &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;

            &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
&lt;/application&gt;
</code></pre>

<p>When I remove</p>
<pre><code> android:theme=&quot;@style/Theme.Base&quot;
</code></pre>
<p>Error does not show up but I got black screen on the phone.</p>
<p>This is my gradle (app) file, I am not quite sure I have a correct support file either.</p>
<pre><code>apply plugin: 'com.android.application'

android {
compileSdkVersion 16
buildToolsVersion &quot;23.0.3&quot;
defaultConfig {
    applicationId &quot;testproj.com.xxx.testproj&quot;
    minSdkVersion 16
    targetSdkVersion 18
    versionCode 1
    versionName &quot;1.0&quot;
    testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
//compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:appcompat-v7:20.0.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:7.3.0'
compile 'com.android.volley:volley:1.0.0'
</code></pre>
<p>}</p>
<p>UPDATED:
This is my colors.xml</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;resources&gt;
&lt;color name=&quot;colorPrimary&quot;&gt;#3F51B5&lt;/color&gt;
&lt;color name=&quot;colorPrimaryDark&quot;&gt;#303F9F&lt;/color&gt;
&lt;color name=&quot;colorAccent&quot;&gt;#FF4081&lt;/color&gt;
</code></pre>

<p>styles.xml</p>
<pre><code>&lt;resources&gt;

&lt;!-- Base application theme. --&gt;
&lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.Base&quot;&gt;
    &lt;!-- Customize your theme here. --&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>