java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/text/Charsets;

错误信息:(部分)
 E/AndroidRuntime(30518): java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/text/Charsets;

 E/AndroidRuntime(30518): at okio.Buffer.(Buffer.kt:2212)

解决方案:

参考:https://stackoverflow.com/questions/53573712/didnt-find-class-kotlin-text-charsets-error-using-okhttp-3-12-0-android

我项目中使用的是,okhttp-3.12.1.jar。于是将okio的jar包改为Okio 1.1.15.jar 

你可能感兴趣的:(java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/text/Charsets;)