I wanted to try new Navigation library. After following this guideline I experienced error at runtime:
Caused by: android.view.InflateException: Binary XML file
Under the navigation folder, there is an XML file called nav_graph.xml. Open it and it will prompt Gradle sync.
nav_graph.xml
Project Tree