Closed
Description
I have okhttp 4.10.0 and okio 3.0.0 in my project and after I upgrade to 0.4.0 it raises an error like this
Caused by: java.lang.NoSuchFieldError: Companion
at okhttp3.internal.Util.<clinit>(Util.kt:70)
at okhttp3.internal.concurrent.TaskRunner.<clinit>(TaskRunner.kt:309)
at okhttp3.ConnectionPool.<init>(ConnectionPool.kt:41)
at okhttp3.ConnectionPool.<init>(ConnectionPool.kt:47)
at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.kt:471)
I found in version 0.4.0, there is a new dependency io.grpc
and there is a okio.Options
java class in this dependency.
On the other hand, there is also a okio.Options
in okio
, but it's writed with kotlin
and this is the main culprit in this problem.