java.lang.NoSuchMethodError with okhttp 4.3.0
alexeyvasilyev opened this issue · 1 comments
alexeyvasilyev commented
Error NoSuchMethodError happens when calling
Platform.get().log(Platform.WARN, "previous digest authentication with same nonce failed, returning null", null);
STACKS:
implementation "com.squareup.okhttp3:okhttp:4.3.0"
implementation "com.burgstaller:okhttp-digest:2.0"
NVIDIA SHIELD Android TV (foster), Android 9
java.lang.NoSuchMethodError:
at com.burgstaller.okhttp.basic.BasicAuthenticator.authFromRequest (BasicAuthenticator.java:39)
at com.burgstaller.okhttp.basic.BasicAuthenticator.authenticate (BasicAuthenticator.java:30)
LGE Qua tab PX (b3), Android 7.0
java.lang.NoSuchMethodError:
at com.burgstaller.okhttp.digest.DigestAuthenticator.authenticateWithState (DigestAuthenticator.java:227)
at com.burgstaller.okhttp.digest.DigestAuthenticator.authenticate (DigestAuthenticator.java:177)
FIX:
log() function in Platform.kt has changed in this commit
square/okhttp@16173e2#diff-f5b1ec0bc5e1662d90457f72acde2607
- open fun log(level: Int, message: String, t: Throwable?) {
+ open fun log(message: String, level: Int = INFO, t: Throwable? = null) {
Swapping params should fix the issue.
rburgst commented
this should be fixed