android - 如何修复“程序类型已存在”错误?
问题描述
我添加了 ksoap2 依赖项或 jar 文件。我已经尝试过在按下 android 的运行按钮时,依赖项和库都会出现此错误。
我已经探索了几个链接,但没有一个对我有用,请给我任何合适的解决方案。
错误:程序类型已经存在:org.xmlpull.v1.xmlpullparserexception
解决方案
在您的应用程序 gradle 中使用它
android {
....
configurations {
all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
}
推荐阅读
- ansible - 在 Ansible 中如何在循环中过滤列表和非列表数据
- c++ - 谁能教我如何解开返回值?
- docker - Mlflow download_artifacts 给出 Not Found 错误
- tensorflow - 处理来自 YOLOv5 TFlite 的输出数据
- javascript - 在 JavaScript 浅拷贝还是深拷贝中破坏分配?
- javascript - 与 mysql 一起使用异步
- vue.js - vuetify v-data-table 使用搜索功能搜索标题中未指示的项目属性
- php - php artisan cache clear PDOException 找不到驱动
- javascript - jsPDF 类型不存在属性“fromHTML”
- reactjs - 在正方形中反应 Konva 中心文本