Resource merging in Instant Apps features modules

て烟熏妆下的殇ゞ 提交于 2019-12-21 02:28:13

问题


In an Instant App feature module, I'm importing an aar (using "api" statement from a maven repository) which contains an activity declaration in its manifest and a "style" resource used in this declaration. The resulting manifest merging fails because the style resource is not found in the base feature project. It seems resources from imported aar in features modules are not included in the base feature module.

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

Any advice on this?


回答1:


Actually it seems that for now this is the intended behaviour. They now affirmn in the official FAQ: "In addition, all the resources referenced by the manifest of a feature module must be present in the base feature module. "

In case such as the one described it that can be troublesome because either you are forced to include the library providing the resources in the base module or at least redeclare in the base module (trough overriding), resources used in the manifest.

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



来源:https://stackoverflow.com/questions/44540262/resource-merging-in-instant-apps-features-modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!