I have a DrawerLayout, but when I add any view to the content_View.xml I get this error:
java.lang.NullPointerException: Attempt to invoke interface method 'void android.support.v7.widget.DecorContentParent. setWindowCallback(android.view.Window$Callback)' on a null object reference
Can anyone explain why is this error happening and how to fix it?