java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform;
程序员文章站
2022-07-12 22:18:55
...
先贴一张错误图片:
根据错误百度了下,有人说可能是okhttp版本和日志版本不一致导致,试了下,没得效果,给给为贴下我当前引用信息
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
后面把版本提高了就可以了,我修改成了3.5.0。
上一篇: Thread与Runnable对比
下一篇: 桌面时钟
推荐阅读
-
AndroidStudio "java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/...."异常的解决
-
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support4/animation/AnimatorCompatHelp
-
java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform;
-
Android java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion