今天用Retrofit2+okhttp3写了一个小demo,结果运行报:Error: Program type already present: okhttp3.Authenticator$1,解决方式如下图:

即添加如下代码:
configurations {
all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
参考链接:
https://www.cnblogs.com/sea-stream/p/10596895.html
https://blog.youkuaiyun.com/u014374009/article/details/84990214
博主使用Retrofit2和okhttp3编写小demo时,运行报错‘Error: Program type already present: okhttp3.Authenticator$1’,并给出了解决方式,还提供了参考链接。
3574

被折叠的 条评论
为什么被折叠?



