Retrofit Error 2.0.2 Beta Error In Callback Does Not Override Abstract Method Onresponse(response)
public class RetroFitClient { public static APIClass GetRetroFitClient() { return RETROFIT_API_CLASS; } public static void Initiali
Solution 1:
The RETROFIT_API_CLASS
should be an interface, those methods are implemented automatically by the Retrofit framework, you shouldn't call them directly, that's the reason of your error.
Retrofitretrofit=newRetrofit.Builder()
.baseUrl(APP_BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
APIClassservice= retrofit.create(APIClass.class);
Call<YourParsedResponse> myCall = service.myCall();
myCall.enqueue(...)
Btw it may help this resource, a basic working project with a very simple http call with Retrofit 2
https://github.com/saulmm/Retrofit-2-basic-sample
Post a Comment for "Retrofit Error 2.0.2 Beta Error In Callback Does Not Override Abstract Method Onresponse(response)"