Closed libeimarch closed 1 year ago
android {
...
configurations {
all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
}
android {
...
configurations {
all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
}
试试上面这个方式
可以打包成功了,但运行报错
FATAL EXCEPTION: Anchors Thread #1
Process: com.ygb.driver, PID: 28608
java.lang.NoSuchMethodError: No static method get(Ljava/lang/String;)Lokhttp3/MediaType; in class Lokhttp3/MediaType; or its super classes (declaration of 'okhttp3.MediaType' appears in /data/app/~~egn6un_MJDhtTKxgz895GQ==/com.ygb.driver-4nFlhQ9xaQTa9wnCPgFZlw==/base.apk!classes12.dex)
at rxhttp.wrapper.callback.JsonConverter.
报这个错,咋整