I have an Android library linked to a project and need to override some drawables defined in the former. Adding drawables with the same name to the project does not work, while other resource types like strings and layouts get overriden correctly.
Both drawables are vector drawables located in res/drawable
folder but when I click "Go To -> Declaration or Usages" it shows the following list:
ic_drawable.xml (..myproject\app\src\main\res\drawable)
ic_drawable.xml (..user\.gradle\caches\transforms3\..\transformed\mylibrary\res\drawable-anydpi-v24)
+ a list of `ic_drawable.png` of different sizes
So it looks like gradle is transforming library verctor drawables into pngs of different resolutions and those are taking the priority over the project verctor drawable.
The same question was asked 10 years ago. Has any solution come since then?