Error: Program type already present: okhttp3.Authenticator$1

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

Error: Program type already present: okhttp3.Authenticator$1_第1张图片

即添加如下代码:

    configurations {
        all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    }

参考链接:

https://www.cnblogs.com/sea-stream/p/10596895.html

https://blog.csdn.net/u014374009/article/details/84990214

 

你可能感兴趣的:(错误累积)