andnroid 报错java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform

项目中引入一个开源下载框架

compile 'com.tamic.fastdownloader:Android-FastDownloader:1.0.3',运行后项目报错:

java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform,百度了下解决办法:

在gradle中添加 compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'就可以了,注意要与你的okhttp保持一个版本,像这样:

compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'

compile 'com.squareup.okhttp3:okhttp:3.9.0'

你可能感兴趣的:(andnroid 报错java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform)