Skip to content Skip to sidebar Skip to footer

Overriding An Android Library Project Asset File

Based on the following links: Best practice: Extending or overriding an Android library project class https://developer.android.com/studio/write/add-resources.html#resource_merging

Solution 1:

Here is the result of my test.

This is my assets/ inside the AAR:

-assets/
 -a.xml
 -b.xml

This is my assets/ inside my android project that depends on the AAR above:

-assets/
 -b.xml
 -c.xml

The resulting assets/ in my APK is below:

-assets/
 -a.xml (from AAR)
 -b.xml (from my project)
 -c.xml (from my project)

Post a Comment for "Overriding An Android Library Project Asset File"