解决No resource found that matches the given name :Theme.AppCompat.Light error: Error retrieving paren

来源:互联网 发布:男童加绒裤子淘宝 编辑:程序博客网 时间:2024/03/29 04:26

刚刚new -> Android Project 时 以为运行下看看效果。。。但是报错:

No resource found that matches the given name :Theme.AppCompat.Light error: Error retrieving parent for item: No resource found that matches the given name   'Theme.AppCompat.Light' 解决办法:

在eclipse工程项目中,找到res 下面几个value开头的文件夹,将文件下的所有style文件中的
1. <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> 改为  <style name="AppBaseTheme" parent="android:Theme.Light"> 
2. 将<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 改为  <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> 
就OK了。

0 0
原创粉丝点击