java.lang.IllegalArgumentException: FormUrlEncoded can only be specified on HTTP methods with request body (e.g., @POST)
If you add @FromUrlEncoded to the top of @GET, you will have
java.lang.IllegalArgumentException: FormUrlEncoded can only be specified on HTTP methods with request body (e.g., @POST).
Remove @FormUrlEncoded
in your code .
public interface APIService {
@GET("Event")
Call<ApiResponseModel> viewEvent();
}