android - 程序类型已经存在: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 接口。现在我不知道如何处理这个。请帮帮我
解决方案
要解决依赖冲突,请添加配置。
configurations {
all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
推荐阅读
- angular - 如何显示换行符
- android - 由于 require 只返回一个数字,我如何在 react native 中将图像文件作为 URI 移交?
- database - 从同一包中的过程调用函数时出错
- c# - GraphServiceClient 及其以编程方式使用
- javascript - 使用 Javascript 在 wordpress 中进行自定义字段计算
- reactjs - 为什么我不能将 React 应用程序部署到 Google Cloud Storage?
- wso2 - 如何在wso2 esb中的序列中间接收请求
- android - 使用 Jetpack 的 Android 导航组件重新创建的片段
- php - 如何将一个数据库表的多个变量的值提交到一个输入字段中?
- javascript - 删除 d3 工具提示 onclick