Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java \res\menu\main.xml:5:错误:未找到属性';showAsAction';包装内';安卓&x27;_Java_Android_Eclipse - Fatal编程技术网

Java \res\menu\main.xml:5:错误:未找到属性';showAsAction';包装内';安卓&x27;

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

我将我的谷歌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: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中引入