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

查看:90
本文介绍了什么是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天全站免登陆