Android 程序类型已存在:okhttp3.Authenticator$1

Android 程序类型已存在:okhttp3.Authenticator$1,android,instamojo,kite,Android,Instamojo,Kite,我们使用lib文件夹中的kiteconnect.jar文件进行套接字连接。现在我正在应用程序中集成Instamojo支付网关,但在运行应用程序时出现此错误 程序类型已存在:okhttp3.验证器$1 消息{kind=ERROR,text=Program type已经存在:okhttp3.Authenticator$1,sources=[未知源文件],tool name=Optional.of(D8)} 在提取kiteconnect.jar文件后,在该文件中找到了okhttp3接口。 现在我不知道

我们使用lib文件夹中的kiteconnect.jar文件进行套接字连接。现在我正在应用程序中集成Instamojo支付网关,但在运行应用程序时出现此错误 程序类型已存在:okhttp3.验证器$1 消息{kind=ERROR,text=Program type已经存在:okhttp3.Authenticator$1,sources=[未知源文件],tool name=Optional.of(D8)}

在提取kiteconnect.jar文件后,在该文件中找到了okhttp3接口。 现在我不知道该怎么处理。 请帮我解决一下

使用Android Studio“3.1.3”,看起来您不再需要显式地将okhttp3添加到项目的渐变中。尝试从build.gradle中删除所有okhttp3行。然后同步你的项目,看看是否一切正常

实现'com.squareup.okhttp3:okhttp:3.11.0'

实现'com.squareup.okhttp3:okhttpurlconnection:3.0.0'
要解决依赖项冲突,请添加配置

configurations {

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

 }

这里也有同样的问题,我还没有发现发生了什么:/check this ans。。这在我的项目中起作用。。