在更新完成android sdk后创建了项目,然后选择的sdk版本是android 21,系统自动创建了v7的资源项目,然后本项目引用了该v7.
可是问题来了,v7资源项目里的res资源属性报错,no found missing!!!!WTF
v7也是21版本的,结果res里面生成的values-large-v14里的有个
<style name="Theme.Base.AppCompat.DialogWhenLarge"
parent="Theme.Base.AppCompat.DialogWhenLarge.Base" />
<style name="Theme.Base.AppCompat.Light.DialogWhenLarge"
parent="Theme.Base.AppCompat.Light.DialogWhenLarge.Base" />
parent找不到,关键时刻还是stack大神帮了我
http://stackoverflow.com/questions/26711949/faced-with-error-retrieving-parent-for-item-no-resource-found-that-matches-the?s=4|0.4760
It looks like all Theme.Base.xxxx
was renamed to Base.Theme.xxxx
Try to
use Base.Theme.AppCompat.DialogWhenLarge
竟然神器的好了,不报错了,但是layout里面有些引用也报错,好吧,引用错误,然后修改下就可以了。
哪里出错找哪里,再也不用担心我的学习了,so easy~~!
时间: 2024-09-30 12:29:51