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.

  • Obfuscation in Android Studio
  • Android: How to set XML dimen variables programatically
  • Cordova WebView TIMEOUT ERROR with android
  • Android AutoCompleteTextView with chips
  • android - How to close an activity on button click?
  • Cordova wants android-19, I have android-20
  • How and where do I use it? I can’t see content assist helping with me on this anywhere.

    Related posts:

    When making a POJO in Firebase, can you use ServerValue.TIMESTAMP?
    In the Google Play app, how is the ViewGroup showing the application top lists implemented?
    Add character automatically in EditText after 6 letters
    Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)
    GoogleApiClient.connect()' was expected to be of type interface but was found to be virtual
    setMinDate(…) for DatePicker doesn't work when invoked a second time
  • Android: How to disable list items on list creation
  • Keep TextInputLayout always focused or keep label always expanded
  • How make a ListPreference with checkbox
  • Android get Facebook friends who have app downloaded
  • Android AudioRecord Supported Sampling Rates
  • Eclipse Android Emulator - Keyboard not working
  • 4 Solutions collect form web for “Using the new “manifestmerger” property in Android”

    Add the following line :


    to your file of your application project.

    If you want to merge android library project manifest and your current project manifest, you have to add manifestmerger.enabled=true in your file where you referred your library project. But, you should be confirmed some point like ADT version, Also Minimum and target SDK should be same as library project.

    manifestmerger.enabled=true won’t merge the manifest files if you are using eclipse export signed App.
    As noted here it seems to be a bug.

    It was a bit of a hassle for me to set up merging correctly as well. (restarting eclipse, open close project..) To find out if merging is working take a look at the file in ../Your_Main_Project/bin/AndroidManifest.xml. If merging worked you will see the complete result in this file.

    EDIT: This bug was fixed in ADT v20.0.1 (Juli 2012):

    I was facing some errors during manifest merging ( file went missing) so alternately I explicitly copied the manifest contents (e.g. I copied just the activity contents) from the library project manifest and put them in my main project manifest. That resolved the error and everything seems to be working well so far. Let me know if anyone feels this is not a recommended alternative to manifest merging.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.