android 解决 jar包重复问题:IDE报错发现重复类 Duplicate class com.xxx.xxx found in modules jar compl

对于jar,使用compileOnly,aar 使用implementation,如果已经引入报重复错误,可注释掉moudle-build.gradle 中的aar引用
// ut
//implementation 'com.taobao.android:utdid4all:1.5.2'
clean project
build

你可能感兴趣的:(android 解决 jar包重复问题:IDE报错发现重复类 Duplicate class com.xxx.xxx found in modules jar compl)