How to ignore AndroidManifest.xml project library launchers

I have two Android projects A and B. A uses B as a reference project, and B can be a standalone project or a library project for A. Thus, the manifest has a launcher as well as B.

When building project A, "manifestmerger.enabled = true" is used to combine all the attributes in the manifest B. Thus, I got two launchers in the application list of my device, one will start A, and the other will start B.

My question is: can I ignore the Launcher B setting? I just need a launcher for project A, and also want to leave launcher B if I want to build B offline.

Thanks.

+4
source share

Source: https://habr.com/ru/post/1523278/


All Articles