

Low priority: Dependency and library manifest settings.Medium priority: Manifests in the src/main/ directory of an app project.Higher priority: productFlavor manifest settings.Highest priority: buildType manifest settings.The following list details which manifest settings are are the highest priority during the merge With the settings in higher priority manifest overwriting those in lower priority manifests. The manifest merge priority determines which manifest settings are retained in merge conflicts, Version defined in the other higher priority manifests. Such as allowing an imported library to have a minSdkVersion higher than the Merge conflicts occur when merged manifests contain the same manifest element but with aĭifferent attribute value that does not resolve based on the default merge conflict rules.Ĭonflict markers and selectors can also define custom merge rules, Manifest elements, attributes, and sub-elements from these manifests for the specified Priority, determined by the manifest's file location. Manifest settings are merged based on the manifest Manifest file for app packaging and distribution. The various AndroidManifest.xml files included in your app into a single, generated APK During the build process, manifest merging combines the settings from

The productFlavor, libraries, Android ARchive (AAR) bundles of Android Library With Android Studio and Gradle-based builds, each app canĬontain manifest files in multiple locations, such as the src/main/ folder for Manifest Merging Across Product Flavor Groups.
