setSupportActionBar toolbar cannot be applied to (android.widget.Toolbar) error

前端 未结 13 1373
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 03:45

I\'ve been looking for an answer and I\'ve tried many possible solutions, but nothing seems to work..

I\'m trying to setup a Material Action Bar following this tutor

相关标签:
13条回答
  • 2020-11-30 04:25

    With the addition of androidx in Studio 3.0+ the Toolbar compatibility is now in a new library, accessible like this

    import androidx.appcompat.widget.Toolbar
    
    0 讨论(0)
提交回复
热议问题