No resource identifier found for attribute 'layout_behavior' in package

后端 未结 11 993
不知归路
不知归路 2020-11-30 05:43

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

11条回答
  •  日久生厌
    2020-11-30 05:48

    I am using Androidx,so i implemented implementation 'com.google.android.material:material:1.1.0-alpha05'

    but its still giving me error Unresolved class @string/appbar_scrolling_view_behavior

    so i found just Invalidate caches / Restart

    Quickest way to do that is File → Invalidate caches / Restart... → Just Restart.

    I hope its help you.

    Note: In Android Studio v3.4 showing app:layout_behavior="@string/appbar_scrolling_view_behavior" Unresolved class @string/appbar_scrolling_view_behavior but work when you run your app.

提交回复
热议问题