okhttp-digest: java.lang.NoSuchFieldError
It worked fine for a long time until I switched to io.github.rburgst:okhttp-digest:2.5 from jcenter recently.
The Android app crashes with the following error despite the code is in a try-catch block.
java.lang.NoSuchFieldError:
at com.burgstaller.okhttp.digest.DigestAuthenticator.authenticateWithState (DigestAuthenticator.java:242)
at com.burgstaller.okhttp.digest.DigestAuthenticator.authenticate (DigestAuthenticator.java:180)
at com.burgstaller.okhttp.DispatchingAuthenticator.authenticate (DispatchingAuthenticator.java:45)
at com.burgstaller.okhttp.CachingAuthenticatorDecorator.authenticate (CachingAuthenticatorDecorator.java:35)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest (RetryAndFollowUpInterceptor.java:292)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:160)
at okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121)
at com.burgstaller.okhttp.AuthenticationCacheInterceptor.intercept (AuthenticationCacheInterceptor.java:49)
at okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain (RealCall.java:254)
at okhttp3.RealCall.execute (RealCall.java:92)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (8 by maintainers)
we’ve got exactly the same problem:
do you have any tip what can be the problem?
one important note that this code in a container within a spring boot service…