执行任务后,aar里面要过滤的包名是没看到了,但是点击as “运行”按钮,出现:Duplicate class cn.sirius.nga.BuildConfig found in modules jetified-exclude_GDTSDK_unionNormal-runtime.jar (exclude_GDTSDK_unionNormal.aar) and jetified-XXX_sdk_v3.1.0-runtime.jar (:XXX_sdk_v3.1.0:)
jackom opened this issue · 9 comments
jackom commented
ssiyy commented
cn.sirius.nga.BuildConfig 这各类冲突了,你把这个类也过滤一下试试
jackom commented
ssiyy commented
是这样的,你可以仿照我的demo一样在libs里面新建一个exclude文件夹,这样被过滤的aar包就不会被引用到,你再autoDependencies 等于true就会自动引用到过滤后的aar包,就不会冲突了
jackom commented
是这样的,你可以仿照我的demo一样在libs里面新建一个exclude文件夹,这样被过滤的aar包就不会被引用到,你再autoDependencies 等于true就会自动引用到过滤后的aar包,就不会冲突了
好的,我再试试,谢谢了~
jackom commented
ssiyy commented
你引用了2次
ssiyy commented
jackom commented
好的,我再试下。
jackom commented
现在是可以正常运行了。谢谢楼主!