No resource identifier trovato per l'attributo ' showAsAction '

? user3403139 @ | Original: StackOverFlow
---

Ho il seguente errore durante il tentativo di realizzare un Bar azione nel mio progetto . Non so abbastanza di Azione Bar, qualcuno potrebbe darmi qualche link aiuto

My Manifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidaz.scanner"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8"
    android:targetSdkVersion="11"/>

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name">
    <activity
         android:name=".SplashScreenActivity"
         android:label="@string/app_name" 
         android:theme="@android:style/Theme.NoTitleBar"
         android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

My menú

<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
    android:id="@+id/menu_settings"
    android:showAsAction="never"
    android:title=""/></menu>
---

Top 5 Risposta

1Mark Buikema @

Il vostro obiettivo dovrebbe essere di costruzione Honeycomb per utilizzare showAsAction .

<uses-sdk android:minSdkVersion="11"
    android:targetSdkVersion="11"/>
2nurealam11 @

Prova rimuovere questo ,

Android : showAsAction = " mai "

dalla cartella res / menù da ogni file xml .