After i updated Android Studio i get this error in my xml for my viewpager. Weird thing is it works fine and the project builds without any problems.
What is the reason that '@string/appbar_scrolling_view_behavior' is an Unresolved class?
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
</android.support.v4.view.ViewPager>
My viewpager is inside a CoordinatorLayout.
Those who use or migrated to AndroidX, you can use the following fix to remove the error. This also works in Android Studio 3.4
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With