Reputation: 173
I had checked for the questions and have not found a suitable answer for my problem
+ [2014-11-21 16:12:02 - android-support-v7-appcompat]
[2014-11-21 16:12:02 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:220: error: Error: No resource found that matches the given name: attr 'colorControlNormal'.
[2014-11-21 16:12:02 - android-support-v7-appcompat]
[2014-11-21 16:12:02 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:225: error: Error: No resource found that matches the given name: attr 'colorControlHighlight'.
[2014-11-21 16:12:02 - android-support-v7-appcompat]
[2014-11-21 16:12:02 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:224: error: Error: No resource found that matches the given name: attr 'colorControlNormal'.
[2014-11-21 16:12:02 - android-support-v7-appcompat]
[2014-11-21 16:14:50 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:50: error: Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat'.
[2014-11-21 16:14:50 - android-support-v7-appcompat]
[2014-11-21 16:14:50 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:74: error: Error: No resource found that matches the given name: attr 'editTextBackground'.
..................................
........................................
[2014-11-21 16:15:48 - android-support-v7-appcompat]
[2014-11-21 16:15:48 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:225: error: Error: No resource found that matches the given name: attr 'colorControlHighlight'.
[2014-11-21 16:15:48 - android-support-v7-appcompat]
[2014-11-21 16:15:48 - android-support-v7-appcompat] E:\MISC\canvas\eclipse workspace\android-support-v7-appcompat\res\values-v21\themes_base.xml:224: error: Error: No resource found that matches the given name: attr 'colorControlNormal'.
Project properties are the same for my app and the appcompat v7 too. The target is set to 21 for both appcompat and my app . The error was at styles_base and later after following some answers it jumped to themes base. I had even reinstalled java and eclipse.
Please what should I do?
Upvotes: 9
Views: 13960
Reputation: 2289
Build your project with the API 21 SDK to Let your project know about resource for API 21. Don't forget to clean and re-build.
Upvotes: 4
Reputation: 1122
i had the same problem in appcompat_v7 support lib in values-21\themes_base.xml that
error retrieving parrent Base.V7.Theme.AppCompat
than i completely delete project from workspase and update Android Support Library to 21.0.2 and re-import library from extras\android.....appcompat
problem solved i hope this helps you
Upvotes: 0
Reputation: 14489
First check if Eclipse includes appcompat_v21 on your Library path.
Right click on your project -> Properties -> Android
Check if the project appcompat_v21 is checked.
If it doesn't solve your problem. Carefully check the your
AndroidManifest.xml
And change android:theme into:
android:theme="@style/AppTheme"
Then, clean your project and it should be fine.
Upvotes: 0