java.lang.RuntimeException: Duplicate class com.huawei.hms.activity.BridgeActivity found in modules GetuiSDK-support-HWP-1.0.5.jar (GetuiSDK-support-HWP-1.0.5.jar) and classes.jar (com.huawei.hms:ui:5.0.0.301)
Duplicate class com.huawei.hms.activity.a found in modules GetuiSDK-support-HWP-1.0.5.jar (GetuiSDK-support-HWP-1.0.5.jar) and classes.jar (com.huawei.hms:base:5.0.0.301)
Duplicate class com.huawei.hms.api.Api found in modules GetuiSDK-support-HWP-1.0.5.jar (GetuiSDK-support-HWP-1.0.5.jar) and classes.jar (com.huawei.hms:base:5.0.0.301)
Duplicate class com.huawei.hms.api.Api$ApiOptions found in modules GetuiSDK-support-HWP-1.0.5.jar (GetuiSDK-support-HWP-1.0.5.jar) and classes.jar (com.huawei.hms:base:5.0.0.301)
错误:接入 flutter 插件版的推送,与华为引用内支付有类冲突。
错误原因:
华为支付依赖的是 'com.huawei.hms:iap:5.0.2.300'。
个推 flutter 引用的是 getuiflut: ^0.2.3
冲突原因是一些类在个推的 GetuiSDK-support-HWP-1.0.5.jar 中有,也在 com.huawei.hms 引用的库中。
请问有什么可以解决的方式吗?
个推 flutter 版的官方地址: https://github.com/GetuiLaboratory/getui-flutter-plugin
华为应用内支付的文档:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/integrating-sdk-0000001050035023