SmartCache icon indicating copy to clipboard operation
SmartCache copied to clipboard

IllegalArgumentException

Open mohammadaminha opened this issue 7 years ago • 2 comments

I'm trying to make SmartCall<ResponseBody> this is my Code `Retrofit.Builder builder = new Retrofit.Builder() .baseUrl(G.Url + "/") .addConverterFactory(GsonConverterFactory.create(new Gson()));

        Retrofit retrofit =
                builder.client(
                        ConnectionBuilder.getBuilder(activity).build()
                ).build();

        ConnectionInterFace connectionInterFace = retrofit.create(ConnectionInterFace.class);

connectionInterFace.getListbody(Url, jsonObject.toString()).enqueue(this);

` And i get this Error

IllegalArgumentException: Unable to create call adapter for dimitrovskif.smartcache.SmartCall<okhttp3.ResponseBody> for method ConnectionInterFace.getListbody Can anybody tell me what is my code problem ?

mohammadaminha avatar Feb 15 '18 10:02 mohammadaminha

Facing the same issue. Did you find any fix for that?

kabirnayeem99 avatar Mar 20 '21 12:03 kabirnayeem99

@kabirnayeem99 @mohammadaminha Can you check the new demo app and the new version?

To install the new version, change the implementation line in Gradle, as mentioned in the README. The username/owner of the repo is changed as well.

fikisipi avatar Apr 26 '21 12:04 fikisipi