Merging Resources in Instant Apps Feature Modules

In the Instant App function module, I import an aar (using the api statement from the maven repository) that contains the activity declaration in its manifest and the style resource used in that declaration. The resulting manifest cannot fail because the style resource was not found in the base function project. It seems resources from imported aar in function modules are not included in the base function module.

Since the plugin is still in alpha mode, I'm not sure if I am doing something wrong, if this is a bug or expected behavior.

Any advice on this?

+3


source to share


1 answer


It actually seems like this is the intended behavior at this point. They now state in the official FAQ: "Also, all resources referenced by the function module manifest must be present in the underlying function module."

In the case of, for example, described, this can be problematic, because either you are forced to include a library that provides resources in the base module, or at least update in the base module (override) the resources used in the manifest.



Source: https://developer.android.com/topic/instant-apps/faqs.html

+3


source







All Articles