Search code examples
androidandroid-manifestadtandroid-library

Using the new "manifestmerger" property in Android


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:

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.


Solution

  • Add the following line to your project.properties file of your application project.

    manifestmerger.enabled=true 
    

    Introduced with Android SDK Tools, Revision 20 (June 2012):
    https://developer.android.com/studio/releases/sdk-tools

    Build System
        * Added automatic merging of library project manifest files into the including project's manifest.       Enable this feature with the manifestmerger.enabled property.