"未发现属性“showAsAction”中包“机器人”&QUOT资源标识符; [英] "No resource identifier found for attribute 'showAsAction' in package 'android'"

查看:123
本文介绍了"未发现属性“showAsAction”中包“机器人”&QUOT资源标识符;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试更新我的Andr​​oid应用程序,以寻找更好的运行蜂窝片。因此,我针对的SDK版本11(我的minSdkVersion = 4)。这增加了蜂窝主题我的应用程序,使它看起来更好。不过,我也没有办法访问我的菜单选项。所以,我试图加我的菜单项作为动作栏项目在我的/ RES /菜单/文件夹下的文件中:

I am attempting to update my android application to look better for tablets running Honeycomb. As such, I am targeting version 11 of the SDK (my minSdkVersion = 4). This adds the Honeycomb theme to my app, making it look better. However, I have no way to access my menu options. So, I am attempting to add my menu items as an action bar item with the following in the file in my /res/menu/ folder:

android:showAsAction="ifRoom|withText"

不过,我得到了以下错误:

However, I get the following error:

没有在包中发现属性showAsAction资源标识符机器人

No resource identifier found for attribute 'showAsAction' in package 'android'

我想改变我的minSdkVersion数到11,看看它是否会工作,但没有运气。有任何想法吗?谢谢!

I tried altering my minSdkVersion number to 11 to see if it would work, but no luck. Any ideas? Thanks!

推荐答案

如果您正在构建与Eclipse,确保项目的构建目标被设定为蜂窝了。

If you are building with Eclipse, make sure your project's build target is set to Honeycomb too.

这篇关于"未发现属性“showAsAction”中包“机器人”&QUOT资源标识符;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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