Android Error [Attempt to invoke virtual method 'void android.app.ActionBar' on a null object reference]

后端 未结 24 1964
误落风尘
误落风尘 2020-11-28 22:13

I have a code module which implements viewpager with navigation drawer, however, when I run the code I get the following error

01-26 09:20:02.958: D/AndroidR         


        
24条回答
  •  一生所求
    2020-11-28 22:55

    For those still having this issue, my issue was resolved in the AndroidManifest.xml file. Where it says , you need to remove NoActionBar, making it , because with NoActionBar set the app doesnt know whether or not it wants an action bar when you call one up inside of MainActivity.java

提交回复
热议问题