java - Android Retrofit: missing method body, or declare abstract -
i writing android app use retrofit make api requests. i have helper class this: public class apiservice { public static final string tag = apiservice.class.getsimplename(); public static final string base_url = "https://myapiurl.com"; public static void testapi(){ apiendpointinterface apiservice = prepareservice(); apiservice.ping(new callback<response>() { @override public void success(response apiresponse, retrofit.client.response response) { log.e(tag, apiresponse.tostring()); } @override public void failure(retrofiterror error) { log.e("retrofit:", error.tostring()); } }); } private static apiendpointinterface prepareservice() { restadapter restadapter = new restadapter.builder() .setendpoint(base_url) .build(); apiendpointinterface apiservice = ...