I am receiving the following messages in my console:
Error:(15, 22) No resource found that matches the given name: attr 'colorAccent'. Error:(13, 22)
No resource found that matches the given name: attr 'colorPrimary'. Error:(14, 22)
No resource found that matches the given name: attr 'colorPrimaryDark'.
This is my style.xml
file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppBaseTheme" parent="android:Theme.Holo">
<item name="colorPrimary">@color/color_primary</item>
<item name="colorPrimaryDark">@color/color_secondary</item>
<item name="colorAccent">@color/color_accent</item>
</style>
</resources>
my color.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="cyan">#6441a5</color>
<color name="color_primary">#6441a5</color>
<color name="color_secondary">#6441a5</color>
<color name="color_accent">#6441a5</color>
</resources>
After searching and viewing many other solutions most answer said to change the target SDK to 21: Here is my manifest file:
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" />
And my build grade:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
compileOptions.encoding = 'utf-8'
defaultConfig {
applicationId "com.test.test"
minSdkVersion 15
targetSdkVersion 21
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:21.0.0'
}
But this still hasn't worked. What could be the issue here?