一. ERROR:No resource found that matches the given name 'Theme.AppCompat.Light'
http://www.tuicool.com/articles/YreyEn3
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
通过stackoverflow查到其解决方法,如下:
1.File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
在"文件"中导入sdk路径extras\android\support\v7中的appcompat文件夹.如下图所示:
Project-> properties->Android. In the section library "Add" and choose "appCompat"

此时问题即可解决,能正确运行.

新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持.希望文章能解决大家的bug.
二. 导入android-support-v7-appcompat出现问题: android:Widget.Material.ActionButton
http://www.bubuko.com/infodetail-700302.html
[2014-12-03 11:49:13 - android-support-v7-appcompat] E:\my project\android\android-support-v7-appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name ‘android:Widget.Material.ActionButton‘.
[2014-12-03 11:49:13 - android-support-v7-appcompat] E:\my project\android\android-support-v7-appcompat\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr ‘android:colorPrimaryDark‘.
[2014-12-03 11:49:13 - android-support-v7-appcompat]
解决办法:
将文件project.properties中的
target=android-19
改为
target=android-21
后clean
即可解决
本文向大家讲解的是升级android sdk到5.0,创建项目错误:No resource found that matches the given name 'android:Widget.Material.A 的原因及解决方法,感兴趣的同学参考下。
解决方案1:
