Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am following the documentation here to install the Android SupportV7 Libary into my project. There are two things that I notice: 1)When I am browsing my SDK installation directory and the Support Library folder, there is no folder named "appcompat" 2)When I install the entire V7 folder anyways I get this error:

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

How can I fix this? (Note: this is in the mediarouter folder)

This is what I see when browsing my SDK installation directory: http://tinypic.com/view.php?pic=2egehc9&s=5#.UkZqoRbnZAg

like image 389
user1628978 Avatar asked Sep 28 '13 05:09

user1628978


2 Answers

If use Eclipse:

  1. You should reinstall your Android Support Library by Android SDK Manager to get the complete android supportV7 library.
  2. The mediarouter library project dependency on the appcompat library project. So,after you have finished Step 1, you can follow Android Support Library v7: Error retrieving parent for item to fix this problem.
like image 139
wanping Avatar answered Sep 30 '22 12:09

wanping


Right click the imported android v7 support appcompat library project and open the properties. In android option, choose project build target to be 5.0.1. I hope it works. It worked on my side. It happens because support library contains the functionality of android 5.0.1 and it needs android android 5.0.1 for the build also.

like image 40
Raghav Sharma Avatar answered Sep 30 '22 13:09

Raghav Sharma