0

I know many others have experienced a similar issue and I found these questions that were very similar to my issue:

Android Support Library v7: Error retrieving parent for item

error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'

The problem is that I tried the different solutions offered in those answers such as changing the target sdk to something like 14 or 15, and also cleaning and rebuilding the project. I am using intelij and I havent been able to make the following errors disappear:

Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton' Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'

are there any other things that I can try to attempt to correct these errors? any suggestions are appreciated

Community
  • 1
  • 1
ez4nick
  • 9,756
  • 12
  • 37
  • 69

3 Answers3

1

Maybe you are not including the support library to your project.

Also have a look at this question Use AppCompat Library for ActionBar support

Community
  • 1
  • 1
youssefhassan
  • 1,067
  • 2
  • 11
  • 17
0

Add the support library from your adt location like this :

adt-bundle-windows-x86_64-20130917\sdk\extras\android\support\v7\appcompat\libs\android-support-v7-appcompat 

to your project and clean the project..It should fix it.

mike20132013
  • 5,357
  • 3
  • 31
  • 41
0

You should ask yourself the following question "Do I want to support older (<4) android versions?"

If you don't want to, you don't have to use AppCompat. If you do want to support older versions, you simply include the Appcombat library.

Right click on your Hierarchy and select import. Browse to the location of your SDK/Extras/Android/Support/V7/Appcompat/ and import that library.

Now mark the project as a library and add the Library to your app. Now, Appcompat can actually be resolved.

Mdlc
  • 7,128
  • 12
  • 55
  • 98