Move support library dependency munging earlier
The presence of LOCAL_STATIC_ANDROID_LIBRARIES is used early to decide whether to move resources to overlays, and late to decide whether to add --auto-add-overlay. If support_libraries.mk moves the last LOCAL_STATIC_ANDROID_LIBRARIES value to LOCAL_STATIC_JAVA_LIBRARIES then the resources will be moved to overlays but --auto-add-overlay will not be added, causing aapt2 to fail with: error: resource bool/leanback_outline_clipping_disabled does not override an existing resource. note: define an <add-resource> tag or use --auto-add-overlay. Bug: 79481102 Test: m FORCE_AAPT2=true java Change-Id: Icc67acf23b846bd506a5d397d02ad5775ad0ea1d
Loading
Please register or sign in to comment