How to add dependencies in case of recycler view