Android manifest merger with facebook and firebase libraries
<p>I've imported in my project 2 libraries (in gradle file):</p>

<pre><code>...
/* Firebase UI */
compile 'com.firebaseui:firebase-ui:0.4.0'

/* Facebook login */
compile 'com.facebook.android:facebook-android-sdk:4.13.0'
</code></pre>

<p>but when building my project I have the following error:</p>

<blockquote>
  <p>D:\Android\Projects\quoter\app\src\main\AndroidManifest.xml:68:13-58
  Error:    Attribute activity#com.facebook.FacebookActivity@theme
  value=(@style/FirebaseUI.Translucent) from
  [com.firebaseui:firebase-ui-auth:0.4.0] AndroidManifest.xml:68:13-58
    is also present at [com.facebook.android:facebook-android-sdk:4.13.0]
  AndroidManifest.xml:32:13-72
  value=(@android:style/Theme.Translucent.NoTitleBar).  Suggestion: add
  'tools:replace="android:theme"' to  element at
  AndroidManifest.xml:64:9-68:61 to override.</p>
</blockquote>

<p>I found the expanded jars with the manifest files for both Facebook sdk and Firebase UI libraries, but I'm not sure that changing them it's the right way to solve this error because each time I clean and re-build my project new manifests are also generated... </p>

<p>How can i solve this error? It seems to me an incopatibility between the 2 libraries...</p>

<p>Note: adding in my app manifest the following</p>

<pre><code>&lt;application
    tools:node="replace"
</code></pre>

<p>solve this problem, but it's impossible to launch the app because Firebase it's not correctly initialized (see <a href="https://stackoverflow.com/a/38060272/6503817">https://stackoverflow.com/a/38060272/6503817</a>)</p>