AS报错:Didn‘t find class “okhttp3.OkHttpClient$Builder“ on path: DexPathList[[...]]
报错信息
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.OkHttpClient$Builder" on path: DexPathList[[...]]
解决方案
在 build.gradle 中添加依赖:
dependencies {
compile 'com.squareup.okhttp3:okhttp:3.11.0'
}