Below is my dependency
implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
My Layout.XML
<?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffffff" android:fitsSystemWindows="true"> <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottomBar" style="@style/Widget.MaterialComponents.BottomAppBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:backgroundTint="@color/colorPrimary" app:fabAlignmentMode="center" app:fabCradleMargin="10dp" app:fabCradleVerticalOffset="4dp" app:navigationIcon="@drawable/ic_drawer" > </com.google.android.material.bottomappbar.BottomAppBar> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_anchor="@id/bottomBar" app:srcCompat="@drawable/ic_apps" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
The Above code is working fine for me
But when i update the dependencies
of material design
implementation 'com.google.android.material:material:1.1.0-alpha01'
I'm getting below error