Cannot resolve class android.support.v7.widget.RecyclerView

    <android.support.v7.widget.RecyclerView
        android:id="@+id/id_recyclerview"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    </android.support.v7.widget.RecyclerView>

在这里插入图片描述
修改为:

改为:androidx.recyclerview.widget.RecyclerView
	<androidx.recyclerview.widget.RecyclerView
        android:id="@+id/id_recyclerview"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    </androidx.recyclerview.widget.RecyclerView>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43216714/article/details/123733123
今日推荐