Reputation: 67
Hello I am trying to use the them "Theme.Material.Light.DarkActionBar"
I updated my SDK and ADT, I have the latest lollipop phone. I am compiling it with android 5.1.
I changed manifest to
android:minSdkVersion="22"
android:targetSdkVersion="22"
Inside of my manifest I put:
android:theme="@style/Theme.Material.Light.DarkActionBar"
However I get the error saying Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Material.Light.DarkActionBar') .
How can i fix this so I can use this theme in my app please. ps I am using Eclipse.
Upvotes: 0
Views: 2179
Reputation: 633
As referenced in https://developer.android.com/training/material/theme.html you should try -
@android:style/Theme.Material.Light
Upvotes: 1
Reputation: 5587
You should change:
android:theme="@style/Theme.Material.Light.DarkActionBar"
To
android:theme="@android:style/Theme.Material.Light.DarkActionBar"
Because it is an Android resource and not your project's resource.
Upvotes: 1