"No Resource Identifier Found for Attribute 'Showasaction' in Package 'Android'"

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

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

No resource identifier found for attribute 'showAsAction'

Your build target should be Honeycomb in order to use showAsAction.

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

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

Are you sure you are looking in the right *.xml file? You seem to look for "showAsAction" in layout xmls, but it's parameter for the menu. Look rather into .../menu/your_activity.xml

The problem you are dealing with is connected with using target less than 4.0 and/or API less than 14.

So,

a) change those parameters,

b) change the value of showAsAction from "never" to "ifRoom".

Error: No resource identifier found for attribute 'showsAsAction' in package 6

  1. it should be android: not app:
  2. should be showAsAction not showsAsAction

You have letter s attached to show

EDIT

For your next problem: You have to put an image also into drawabe folder, not only in one of the xxxhdpi(or similar) folders.



Related Topics



Leave a reply



Submit