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

前端 未结 7 1891
花落未央
花落未央 2021-02-13 19:30

as the title suggest, I\'m getting that error in at least 3 of the XML layout files, however, I dont see the attritube \"showsAsAction\" in any of those XML files, did I miss so

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 19:57

    This happens if you have used the resourceidentifier "ShowAsAction" in your XML. This feature is available only from ver11 i guess. If you are trying to run the same on a lower API version this errror is produced. SOLUTION ->> Right click the project > Properties > Android> Build Target > Choose something greater than API 11

提交回复
热议问题