ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing

来源:互联网 发布:网络 编辑:程序博客网 时间:2024/05/16 13:58

当用Eclipse编写Android app 时,sdk从低版本切换到高版本sdk的时候, v7包可能会报下面这个错误:

ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing


网上找到了解决方法,试了一下,确实可行:

     点击V7包找到values文件夹,打开attrs.xml,找到 MenuView ,然后将preserveIconSpacing注释掉或者删掉,保存。最后, clean一下就行了。
0 0
原创粉丝点击