I am trying to implement a Navigation drawer, but I keep getting this error. I saw the similar questions but did not work for me. I have the following layout activity_main2.
For those who still have an exception, ensure your DrawerLayout's height is match_parent
DrawerLayout
match_parent