首页 > 解决方案 > 程序类型已经存在:okhttp3.Authenticator$1

问题描述

我们使用 lib 文件夹中的 kiteconnect.jar 文件进行套接字连接。现在我在应用程序中集成 Instamojo 支付网关,但在运行应用程序时出现此错误 程序类型已经存在:okhttp3.Authenticator$1 Message{kind=ERROR, text=Program type already present: okhttp3.Authenticator$1, sources=[Unknown source file],工具名称=Optional.of(D8)}

解压 kiteconnect.jar 文件后发现 okhttp3 接口。现在我不知道如何处理这个。请帮帮我

标签: androidinstamojokite

解决方案


要解决依赖冲突,请添加配置。

configurations {

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

 }

推荐阅读