关于引入 NavigationView 遇到的问题

项目中需要引入SlideMenu android.support.design.widget.NavigationView

但遇到CRASH 的问题: 

1. android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

2. java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.


解决:

1. 引入库版号要一致:
例如:
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'

2. style 设置: