如题,我在处理友盟分享和应用宝平台的时候遇到了包重复问题,友盟的项目是作为library依赖库编译到腾讯平台的项目的,我现在想要在最终编译apk的时候去掉友盟aar里面的某个微信包,这要怎么做啊找了一天都没找到,炸毛中!!!
//编译友盟
slidemetestCompile(name:'general/umeng-release', ext:'aar'){
exclude group:'open_sdk_r5756'
exclude module: 'SocialSDK_WeiXin_1'
}
这两个是我尝试的两个,都不能去除求大神!!!救救我吧~
//编译友盟
slidemetestCompile(name:'general/umeng-release', ext:'aar'){
exclude group:'open_sdk_r5756'
exclude module: 'SocialSDK_WeiXin_1'
}
这两个是我尝试的两个,都不能去除求大神!!!救救我吧~
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
在build.gradle.里面加上这个试试