首页 > 解决方案 > 如何修复“程序类型已存在”错误?

问题描述

我添加了 ksoap2 依赖项或 jar 文件。我已经尝试过在按下 android 的运行按钮时,依赖项和库都会出现此错误。

我已经探索了几个链接,但没有一个对我有用,请给我任何合适的解决方案。

错误:程序类型已经存在:org.xmlpull.v1.xmlpullparserexception

标签: androidksoap2

解决方案


在您的应用程序 gradle 中使用它

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

推荐阅读