错误:在< declare-styleable>中; MenuView,无法找到属性android:preserveIconSpacing [英] ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing

查看:115
本文介绍了错误:在< 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.

希望有帮助.

这篇关于错误:在&lt; declare-styleable&gt;中; MenuView,无法找到属性android:preserveIconSpacing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆