54

I have a library module with a huge manifest. Also i have a application module with a huge manifest very similar to my library manifest but with package name changes. Now i want to see the resulting mixed manifest of Manifest Merger process.

How can i see it?

NullPointerException
  • 36,107
  • 79
  • 222
  • 382

3 Answers3

77

In Android Studio 3.3 you can also see Merged Manifest by clicking on Merged Manifest tab. It's showed at the bottom of the editor pane when you open your standard project manifest.

enter image description here

see documentation: Merge multiple manifest files

tymbark
  • 1,279
  • 12
  • 20
  • 5
    This is better than the accepted answer. It not only shows the merged result but the sources of the result and links to open the individual library manifest files. – Manuel Jan 31 '20 at 12:44
  • Ahh yes thanks! My app got rejected twice because some dependency was adding permissions to the Manifest without me noticing. I was able to track down the guilty dependency thanks to your solution. – samzmann Feb 18 '21 at 14:48
72

You find the manifest in your build folder, e.g.

/project/module/build/intermediates/manifests/full/debug/AndroidManifest.xml

vRallev
  • 4,982
  • 3
  • 31
  • 34
  • thanks. It is possible to tell android studio that must use application manifest and ignore 100% content of library manifest? – NullPointerException Aug 19 '15 at 08:37
  • Yes, look at the documentation: http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger#TOC-Remove-an-attribute-coming-from-the-library. – vRallev Aug 19 '15 at 08:41
  • but i don't want to remove an atribute, i want to ignore 100% of the manifest. Can't find it in documentation – NullPointerException Aug 19 '15 at 08:46
17

The Merged Manifest tab in Android Studio is useful to check the source of entries, but it's very limited (you can't select or search the text).

I prefer opening the merged manifest XML file directly, which is located here: <project>/<module>/build/intermediates/merged_manifests/<build_flavor_name>

Sébastien
  • 13,831
  • 10
  • 55
  • 70