使用新的“manifestmerger"Android 中的属性 [英] Using the new "manifestmerger" property in Android
问题描述
在最新版本的 ADT(第 20 版预览版 3)中,他们说可以使库的清单文件与使用它们的项目合并:
In the newest version of ADT (version 20 preview 3), they say that it's possible to make the libraries' manifest file become mergeable with projects that use them:
自动将库项目清单文件合并到包含项目清单.使用 manifestmerger.enabled 属性启用.
Automatic merging of library project manifest files into the including project's manifest. Enable with the manifestmerger.enabled property.
我如何以及在哪里使用它?我在任何地方都看不到内容帮助帮助我解决这个问题.
How and where do I use it? I can't see content assist helping with me on this anywhere.
推荐答案
将以下行添加到您的应用程序项目的 project.properties
文件中.
Add the following line to your project.properties
file of your application project.
manifestmerger.enabled=true
与 Android SDK 工具一起引入,修订版 20(2012 年 6 月)
:
https://developer.android.com/studio/releases/sdk-tools
Introduced with Android SDK Tools, Revision 20 (June 2012)
:
https://developer.android.com/studio/releases/sdk-tools
构建系统
* 添加了库项目清单文件的自动合并到包含项目的清单中. 使用 manifestmerger.enabled
属性启用此功能.
Build System
* Added automatic merging of library project manifest files into the including project's manifest. Enable this feature with themanifestmerger.enabled
property.
这篇关于使用新的“manifestmerger"Android 中的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!