What is the Merged Manifest in Android?

Issue

I am trying to understand the purpose of the Merged Manifest in the Android Studio. Which kind of Information, I can encode exploring this file. Can any one please share their views. Thanks in Advance.

check the attached screenshot

Solution

Your APK file can contain just one AndroidManifest.xml file, but your Android Studio project may contain several—provided by the main source set, build variants, and imported libraries. So when building your app, the Gradle build merges all manifest files into a single manifest file that’s packaged into your APK.

The manifest merger tool combines all XML elements from each file by following some merge heuristics and by obeying merge preferences that you have defined with special XML attributes.

I have included the summary about the merger manifest.

You can read more about it here

Answered By – Anubhav Gupta

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published