New version of okhttp have changed the way interceptors are added to the client.
When can we expect stetho update to support okhttp3?
This is being tracked by #324
When you plan to fix it?
OkHttpClient okClient = new OkHttpClient.Builder()
.addNetworkInterceptor((Interceptor) new StethoInterceptor())
Caused by: java.lang.ClassCastException: com.facebook.stetho.okhttp.StethoInterceptor cannot be cast to okhttp3.Interceptor
I use compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'
This would really be an Important change! Also OkHttp 3.0 is final as of today.
I totally agree with @panzerdev I'm dying to have this working with OkHttp3.0
Sorry folks, I was asleep at the wheel on this and will be cutting a release tomorrow to address this. A new module will be added, stetho-okhttp3 which will replace the current stetho-okhttp.
#324 is now closed, the milestone (https://github.com/facebook/stetho/milestones/1.3.0) now tracks the release.