kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.08k stars 607 forks source link

Format <declare-styleable/> #392 #395

Closed monkeydbobo closed 1 year ago

monkeydbobo commented 1 year ago

在 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

期望的正确写法应该是, 只被声明一次,如下