Always use aapt2 --no-static-lib-packages
--no-static-lib-packages was removed when compiling libraries with use_resource_processor: true enabled, but that caused problems resolving attributes of styleables. androidx.preference declares the "icon" attribute inside a <declare-styleable>, but doesn't give it a format. aapt2 refuses to create a new attribute for this case (b/131100106), but without --no-static-lib-packages aapt2 can resolve the attribute from the one defined in androidx.appcompat. Bug: 294256649 Test: builds Change-Id: I13661be83ba6501b0c2b1af8e632f260f405a370
Loading
Please register or sign in to comment