fikisipi / SmartCache

A library for preloaded Retrofit responses.
Apache License 2.0
78 stars 16 forks source link

IllegalArgumentException #9

Open mohammadaminha opened 6 years ago

mohammadaminha commented 6 years ago

I'm trying to make SmartCall 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 ?

kabirnayeem99 commented 3 years ago

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

fikisipi commented 3 years ago

@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.