title: How to Setup Jetpack Navigation with material.BottomNavigationView
body: <p>I am unable to setup Navigation component with <strong>com.google.android.material.bottomnavigation.BottomNavigationView</strong> it is giving an error.</p>
  
  <p><a href="https://i.stack.imgur.com/iLrzS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLrzS.png" alt="enter image description here"></a></p>
  
  <p>Here is the code that I am trying to use</p>
  
  <pre><code> // Setup bottom navigation view
      NavigationUI.setupWithNavController(
              bottom_navigation_view,
              findNavController(R.id.main_nav_host_fragment)
      )
  </code></pre>
  
  <p>when I open the <strong>NavigationUI</strong> class, I note that it just accept the old <strong>android.support.design.widget.BottomNavigationView</strong> but I want to use the new one <strong>com.google.android.material.bottomnavigation.BottomNavigationView</strong> class. Any idea about it?</p>
  
  <p><strong>[Update 14/11/2019]</strong></p>
  
  <p>This was a bug and was fixed at Android Gradle Plugin (~3.2.0-rc-01 and 3.3.0-alpha-04). You can see the issue tracker in the following link: <a href="https://issuetracker.google.com/issues/110692942" rel="nofollow noreferrer">https://issuetracker.google.com/issues/110692942</a></p>