No type arguments expected for class Call

If you import both Retrofit and Okhttp, make sure the Call class you use is the one from Retrofit:

import retrofit2.Call

not:

import okhttp3.Call

Give a look to import section and check whether retrofit2.Call library is imported or not ,sometimes it gets touched with okhttp3.call but you have to use the retrofit one.so make sure the library is imported to the interface/class.


Just verify that you've imported the correct package from Retrofit.

The correct one is

retrofit2.Call

not to be confused with, for example

android.telecom.Call

Tags:

Android

Kotlin