当我一起使用Retrofit和Ksoup2然后应用程序显示以下错误 Program type already present: okhttp3.Cache 之后我在app gradle中使用这些代码行

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

以前的问题已经解决但是其他问题出现在改造baseURL中,请帮我解决一下什么是解决方案 .

java.lang.NoSuchMethodError: No static method get(Ljava/lang/String;)Lokhttp3/HttpUrl; in class Lokhttp3/HttpUrl; 
or its super classes (declaration of 'okhttp3.HttpUrl' appears in /data/app/com.mypackage-EXp6/base.apk:classes2.dex)
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:458)

我在app中使用的依赖项

implementation 'com.squareup.retrofit2:retrofit:2.5.0' 
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'

ksoap2-android-assembly-3.6.3-jar-with-dependencies.jar