joshua
joshua

Reputation: 67

Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Material.Light.DarkActionBar')

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

Answers (2)

TechnoBlahble
TechnoBlahble

Reputation: 633

As referenced in https://developer.android.com/training/material/theme.html you should try -

@android:style/Theme.Material.Light

Upvotes: 1

Xander
Xander

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

Related Questions