Android 中的合并清单是什么? [英] What is the Merged Manifest in Android?

查看:25
本文介绍了Android 中的合并清单是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解 Android Studio 中合并清单的用途.哪种信息,我可以编码探索这个文件.任何人都可以分享他们的观点.提前致谢.

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.

推荐答案

你的 APK 文件可以只包含一个 AndroidManifest.xml 文件,但你的 Android Studio 项目可能包含多个——由主源提供设置、构建变体和导入的库.因此,在构建您的应用时,Gradle 构建会将所有清单文件合并到一个单独的清单文件中,该清单文件会打包到您的 APK 中.

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.

清单合并工具通过遵循一些合并启发并遵守您使用特殊 XML 属性定义的合并首选项来合并每个文件中的所有 XML 元素.

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.

我已经包含了关于合并清单摘要.

您可以在此处

这篇关于Android 中的合并清单是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆