in your code response.body()!! Should return a MutableList
Just pass response.body()!! to your recyclerview adapter instead of response.body()!!.toMutableList()
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have a problem , I cannot get onto onResponse , I only get onFailure. This is my code:
object RetrofitClientInstance {
}
interface APIServices {
}
class ExerciseFragment : Fragment() {
}
in your code response.body()!! Should return a MutableList
Just pass response.body()!! to your recyclerview adapter instead of response.body()!!.toMutableList()