androidandroid-actionbar-compat

No resource found - Theme.AppCompat.Light.DarkActionBar


I used ActionBar Style Generator, and now trying to use into my app, but getting :

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

i am using android-support-v7-appcompat.jar lib inside libs folder

my target is to make my app compatible 2.3 or above


Solution

  • 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.