NullPointerException with android.support.v7.widget.Toolbar

后端 未结 12 887
旧巷少年郎
旧巷少年郎 2021-01-07 17:53

I am currently trying to implement a navigation drawer in my app. I am having an issue with the Toolbar being null. I have done many searches online and tried many different

12条回答
  •  说谎
    说谎 (楼主)
    2021-01-07 18:24

    I had an issue with Toolbar that wasn't of support.v7 I mean that you must add android.support.v7.widget. before the cast you realize when finding Toolbar with ID...

提交回复
热议问题