Theme.Appcompat.Light.Darkactionbar - No Resource Found

No resource found - Theme.AppCompat.Light.DarkActionBar

AppCompat is a library project. You need to reference the library project in your android project.

Check the topic Adding libraries with resources.

Update

Adding material theme should be the way. Check https://material.io/develop/android/docs/getting-started for more details.

No resource found that matches the given name AppCompat.Light.DarkActionBar

The problem seems to be in the build.gradle project file (thanks IntelliJ Amiya)

I changed this:

classpath 'com.android.tools.build:gradle:2.3.1'

To

classpath 'com.android.tools.build:gradle:2.2.2'

And now I don't get any erros in AppCompat.Light.DarkActionBar

Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar'

Try to delete android:, like this:

<style name="CustomActionBarTheme"
parent="@style/Theme.AppCompat.Light.DarkActionBar">


Related Topics



Leave a reply



Submit