Java \res\menu\main.xml:5:错误:未找到属性';showAsAction';包装内';安卓&x27;
我将我的谷歌APls[Android 4.0]改为Android[2.2],起初我在Android:Theme.Holo.Light的值v11中有一个错误,我将其改为 值-v14到,看起来没有错误,但res文件夹中的菜单出现了此错误。关于这个项目Java \res\menu\main.xml:5:错误:未找到属性';showAsAction';包装内';安卓&x27;,java,android,eclipse,Java,Android,Eclipse,我将我的谷歌APls[Android 4.0]改为Android[2.2],起初我在Android:Theme.Holo.Light的值v11中有一个错误,我将其改为 值-v14到,看起来没有错误,但res文件夹中的菜单出现了此错误。关于这个项目 <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:conte
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.klk.kidslearningkey.Main" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
非常感谢。读一下这个
在标题“使用支持库中的XML属性”下,尝试以下操作:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.klk.kidslearningkey.Main" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
app:showAsAction="never"
android:title="@string/action_settings"/>
showAsAction在API11中引入