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

前端 未结 7 1879
花落未央
花落未央 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:44

    ANDROID STUDIO

    if you are using ANDROID STUDIO...... use this fix

    add

    xmlns:compat="http://schemas.android.com/tools"

    in menu tag instead of

    xmlns:compat="http://schemas.android.com/apk/res-auto "

    in menu tag.

提交回复
热议问题