Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
T treasure
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FE
  • treasure
  • Issues
  • #60

Closed
Open
Created Jan 05, 2022 by 赵雪飞@snowflyDeveloper

Android-微信升级后sdk包冲突

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable

Duplicate class com.tencent.mm.opensdk.channel.MMessageActV2 found in modules jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0) and jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android:6.8.0) Duplicate class com.tencent.mm.opensdk.channel.MMessageActV2$1 found in modules jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0) and jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android:6.8.0) Duplicate class com.tencent.mm.opensdk.channel.MMessageActV2$Args found in modules jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0) and jetified-wechat-sdk-android-without-mta-6.8.0-runtime (com.tencent.mm.opensdk:wechat-sdk-android:6.

解决方案: 在冲突的包中排出微信的包(根据报错找出包名:”com.tencent.mm.opensdk“) 关键字”exclude“ 例子: //中金 implementation ('com.cpcn.cpcn_pay_sdk:cpcnpay:1.0.4',{ exclude group: 'com.tencent.mm.opensdk' }) //微信 api 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.0'

Edited Jan 05, 2022 by 赵雪飞
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking