ResourceType Style contains key with bad entry:0x01010479

来源:互联网 发布:睡衣推荐 知乎 编辑:程序博客网 时间:2024/06/06 17:59


This is because you are using theme attributes that were not present on the platform on which you are running your application. Despite the giant red error log that it adds, it's more of a warning as it does not affect the other attributes. The newer attributes are never read on the older platforms.

The linked question from me was my attempt to not have to require ABSv4 use mirrored attributes.

If you really want to get rid of the error you can create two sets of your styles. One invalues/ for the compatibility action bar and one in values-v14/ that use the prefixed attributes for the native action bar.

And please, please, please, please do not use maxSdkVersion. UsetargetSdkVersion instead.

大概意思就是两个页面的风格不一致造成的。

解决办法:新建一个value-v14的文件夹,然后你在其中再建一个style即可

0 0
原创粉丝点击