My application worked fine until I tried to add a library to it. After I added the library, Android Studio gives me the following error:
Error:(26) No
if you not added android material yet first add this line in your dependencies in build.gradle file
implementation 'com.google.android.material:material:1.0.0'
then use this attribute instead
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"