【问题标题】:Program type already present com.squareup.okhttp.address when I tried to use grpc and cordova together当我尝试同时使用 grpc 和 cordova 时,程序类型已经存在 com.squareup.okhttp.address
【发布时间】:2019-11-18 14:44:29
【问题描述】:

Cordova.jar 包含包com.squareup.okhttp,而我正在使用的第三方库也包含此包,因为该库正在使用grpc。如果我从第三方库中排除 okhttp 包,一旦启动库功能,应用程序就会崩溃。我该如何处理这种冲突?

【问题讨论】:

标签: android cordova gradle grpc okhttp


【解决方案1】:

我通过解压缩cordova.jar 文件、删除com.squareup.okhttp 包然后将其压缩回jar 格式解决了这个问题。我觉得一定有更好的方法来解决这个问题。

【讨论】:

    猜你喜欢
    • 2018-10-03
    • 1970-01-01
    • 2018-09-23
    • 2019-02-22
    • 1970-01-01
    • 2018-10-21
    • 1970-01-01
    • 2019-04-10
    • 2018-11-15
    相关资源
    最近更新 更多