There are problems when trying to create an adapter for RecyclerView :

 public class FavoriteAdapter extends RecyclerView.Adapter<FavoriteAdapter.ViewHolder> 

In this line, the ViewHolder causes the error: cannot resolve symbol "ViewHolder"

enter image description here How to fix?

    1 answer 1

    In your adapter class FavoriteAdapter , the ViewHolder class should be described, which extends the abstract class RecyclerView.ViewHolder

    • Really. Thank you - Felay