In the past, when Eclipse&ADT were the official tools to develop for Android, you could simply use \"manifestmerger.enabled=true\"
Some of the links in this thread are obsolete. Here's the main one that is updated related to auto merger of manifests, by gradle, for Android AARs.
https://developer.android.com/studio/build/manifest-merge