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'