eclipse新建android工程style文件里的Theme总是报错

在eclipse新建的Android工程中,style文件的Theme出现错误。通过检查发现Library已加入android-support-v7-appcompat.jar,执行Apply操作后,在Android Private Libraries中确认该库已添加。为解决问题,尝试进行Project—Clean,然后重新编译运行,问题得到解决。导入原有项目时,确保选择Copy projects into workspace选项。
摘要由CSDN通过智能技术生成

eclipse新建android工程style文件里的Theme总是报错

报错如下:

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.styles.xml  /simplejni/res/values  line 7  Android AAPT Problem

values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

在网上搜索好久, 总结:
方法一:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值