title: How to place bottomAppBar in layout
body: <p>I'm currently working on a project that uses the bottom app bar as its main navigation. but I always get an error even when I'm copy-pasting from an example source code</p>
  
  <p>Here is my layout file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"&gt;
  
      &lt;androidx.coordinatorlayout.widget.CoordinatorLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;com.google.android.material.bottomappbar.BottomAppBar
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"&gt;&lt;/com.google.android.material.bottomappbar.BottomAppBar&gt;
  
      &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is my gradle dependencies</p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      testImplementation 'junit:junit:4.12'
      implementation 'com.google.android.material:material:1.1.0-alpha05'
      implementation 'com.squareup.okhttp3:okhttp:3.10.0'
      androidTestImplementation 'androidx.test:runner:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  }
  </code></pre>
  
  <p>Here an error that I got</p>
  
  <pre><code>Binary XML file line #14: Binary XML file line #14: Error inflating class com.google.android.material.bottomappbar.BottomAppBar
  </code></pre>