Retrofit 2.0: Unable to create call adapter for class
This issue can also occur if you are using kotlin
coroutines
and the function is not suspend
function
public interface ArticlesAPI {
@GET("url.../habits/progress/")
suspend fun getHabitsTasks(): BaseResponse<HabitResModel>
}
Accordingly to the code you posted you have to change from
List<ArticleResource> getArticles();
to
Call<List<ArticleResource>> getArticles();
You might also want to call explicitly addConverterFactory
to set the converter you want to use