Skip to content Skip to sidebar Skip to footer

Unable To Create Call Adapter For Retrofit2.response<...>

My Api: @GET('/cinema/notShownMovies') fun getNotShownMovies( @Query('token') token: String ): Response @JsonClass(generateAdapter = true) data class

Solution 1:

Just add suspend modifier if using coroutines. This will solve the problem.

Otherwise your issue is likely because there is no Call adapter added when instantiating your Retrofit object. For example, for RxJava2, you can include a call adapter by adding this line while building it.

.addCallAdapterFactory(RxJava2CallAdapterFactory.createWithScheduler(Schedulers.io()))

Post a Comment for "Unable To Create Call Adapter For Retrofit2.response<...>"