Android创建项目报错
错误信息如下:
[2019-03-06 10:04:55 - submitWork] ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
[2019-03-06 10:04:57 - appcompat_v7] ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
[2019-03-06 10:04:58 - submitWork] ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
同时项目R文件报错:
解决方法:
1.找到项目下的res-》value目录下的attrs.xml文件,里面找到<attr name="android:preserveIconSpacing"/>标签。把该标签隐藏掉。
2.如果觉得标签很难找到,可以使用全局搜索。快捷键Ctrl+H,搜索android:preserveIconSpacing。
同样的把该标签隐藏掉就可以了。
转载请标明出处:https://blog.youkuaiyun.com/qq_40720991/article/details/85066605