错误:在 <declare-styleable>MenuView,无法找到属性 android:preserveIconSpacing [英] ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
本文介绍了错误:在 <declare-styleable>MenuView,无法找到属性 android:preserveIconSpacing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个应用程序,当我尝试运行时,出现这样的错误.
I had created an app and when tried to run,get an error like this.
ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
问题
并在 R.java 的末尾
and at end of R.java
请帮我解决这个问题
推荐答案
我在 Eclipse 中遇到了同样的问题,通过更改 API 级别来修复它...
I had the same problem in Eclipse, and fixed it by changing the API level by...
- 右键单击项目
- 打开属性> ANDROID
- 将 API 级别更改为我迄今为止一直使用的级别.
我想我遇到了问题,因为我刚刚从 API 21 切换到 22.我之前读到 API 22 很麻烦,所以人们没有使用它.
I think I was having the problem because I had just switched from API 21 to 22. I had read earlier that API 22 was trouble-some, so people were not using it.
希望有所帮助.
这篇关于错误:在 <declare-styleable>MenuView,无法找到属性 android:preserveIconSpacing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文