在 android.disableResourceValidation=true的时候
多个依赖中存在 declare-styleable 中重复声明了同一个attr,
导致使用打出来的aar会提示—Error: Found item Attr/** more than one time,
这个问题本该在assemble aar的时候由duplicate resource暴露,但是因为disableResourceValidation的缘故,会导致最终的aar包里res/values/出现类似以下定义,会在最终打包成apk的时候出现Error: Found item Attr/** more than one time
在 android.disableResourceValidation=true的时候 多个依赖中存在 declare-styleable 中重复声明了同一个attr, 导致使用打出来的aar会提示—Error: Found item Attr/** more than one time,
这个问题本该在assemble aar的时候由duplicate resource暴露,但是因为disableResourceValidation的缘故,会导致最终的aar包里res/values/出现类似以下定义,会在最终打包成apk的时候出现Error: Found item Attr/** more than one time
期望的正确写法应该是, 只被声明一次,如下