Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接入 flutter 插件版的推送,与华为引用内支付有类冲突。 #34

Open
caihuaplus opened this issue Oct 22, 2020 · 0 comments

Comments

@caihuaplus
Copy link

错误:接入 flutter 插件版的推送,与华为引用内支付有类冲突。

错误原因:

华为支付依赖的是 'com.huawei.hms:iap:5.0.2.300'。

个推 flutter 引用的是 getuiflut: ^0.2.3

冲突原因是一些类在个推的 GetuiSDK-support-HWP-1.0.5.jar 中有,也在 com.huawei.hms 引用的库中。

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 版的官方地址: https://github.com/GetuiLaboratory/getui-flutter-plugin

华为应用内支付的文档:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/integrating-sdk-0000001050035023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant