I am writing a code for fetching a contact in one fragment and another one fragment has contacts and email id but in contacts fragment, there is a runtime error I cant rectify it am a student and learner only so check it out,
recyclerView = view!!.findViewById<RecyclerView>(R.id.demo_recyclerview).apply{
setHasFixedSize(true)
layoutManager = viewManager
adapter =demoadapter
}