'google firebase cloud database [duplicate]

I creating an e-commerce Android app using Android Studio. I am using a video on YouTube for guidelines and I hit a wall with this error, and it won't offer any quick fixes.

'FirebaseRecyclerAdapter(com.firebase.ui.database.FirebaseRecyclerOptions<com.example.onlineshop20.Model.Data>)' in 'com.firebase.ui.database.FirebaseRecyclerAdapter' cannot be applied to '(java.lang.Class<com.example.onlineshop20.Model.Data>, int, java.lang.Class<com.example.onlineshop20.AllFragment.CatOneViewHolder>, com.google.firebase.database.DatabaseReference)'

Please, if anyone has faced this or knows how to solve it, please help me. Thanks

@Override
public void onStart() {
    super.onStart();

    FirebaseRecyclerAdapter<Data, CatOneViewHolder>adapterOne=new FirebaseRecyclerAdapter<Data, CatOneViewHolder>
            (
                    Data.class,
                    R.layout.item_data,
                    CatOneViewHolder.class,
                    mCatOneDatabase
            ) {
        @Override
        protected void onBindViewHolder(@NonNull CatOneViewHolder holder, int position, @NonNull Data model) {

        }

        @NonNull
        @Override
        public CatOneViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
            return null;
        }
    };


}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source