chuck icon indicating copy to clipboard operation
chuck copied to clipboard

Migration to OkHttp 4.0

Open ddshakirov opened this issue 6 years ago • 3 comments

Hi guys! Thank you all for your work! Could you please tell me - are you planning to update the okhttp dependency to version 4.0? Right now it creates some problems, such as NoSuchMethodError in case of using 4.0 version.

ddshakirov avatar Jul 03 '19 14:07 ddshakirov

Hey @ddshakirov

Side note: Looks like this project is no longer maintained. We forked it and we rewrote it in Kotlin here: https://github.com/ChuckerTeam/chucker

I can also tell you the Chucker already supports OkHttp4: https://github.com/ChuckerTeam/chucker/pull/53

cortinico avatar Jul 04 '19 15:07 cortinico

@cortinico I see Chucker is still having OkHttp version as 3.x in this gradle file.

~~And we are not able use Chucker in our Android project. It gives following errors after gradle sync:~~ ~~ERROR: Failed to resolve: com.github.ChuckerTeam.Chucker:library:2.0.4~~ ~~ERROR: Failed to resolve: com.github.ChuckerTeam.Chucker:library-no-op:2.0.4~~

~~(Note: We have already added jitpack.io as in maven repository in our project gradle build file.)~~

We are able to use the Chucker. By mistake we added jitpack maven repo under buildscript.repositories instead of allprojects.repositories.

krishhthedev avatar Jul 09 '19 11:07 krishhthedev

I see Chucker is still having OkHttp version as 3.x in this gradle file.

That is not a problem as the higher version of OkHttp in your build will override the version in Chucker

cortinico avatar Jul 09 '19 12:07 cortinico