title: Android X: tools:replace specified at line: for attribute, but no new value specified
body: <p>I have tried many solutions on this website but still, the problem is not solved. The issue is due to Android X library. When I added Android X, this issue was resolved but it opened up new issue. How to fix this issue?</p>
  
  <p>Earlier this error was coming:</p>
  
  <pre><code>Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
  is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
  Suggestion: add 'tools:replace="android:appComponentFactory"' to &lt;application&gt; element at AndroidManifest.xml:19:5-142:19 to override.
  </code></pre>
  
  <p>After I added <code>tools:replace="android:appComponentFactory"</code>, this error is came:</p>
  
  <pre><code> java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs
  at com.android.builder.core.AndroidBuilder.mergeManifestsForApplication(AndroidBuilder.java:540)    
  at com.android.build.gradle.tasks.MergeManifests.doFullTaskAction(MergeManifests.java:173)
  </code></pre>
  
  <p>Merging Error (in Android Manifest):</p>
  
  <blockquote>
    <p>Error: tools:replace specified at line:2 for attribute
    android:appComponentFactory, but no new value specified app main
    manifest (this file), line 1</p>
  </blockquote>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest
      package="com.example"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      tools:replace="allowBackup, android:appComponentFactory"
      android:allowBackup="false"&gt;
  
      ...
  
      &lt;application
          android:name="com.example"
          android:icon="@mipmap/icon"
          android:debuggable="true"
          android:hardwareAccelerated="false"
          android:largeHeap="true"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"
          android:allowBackup="false"
          tools:ignore="GoogleAppIndexingWarning,HardcodedDebugMode"&gt;
         ...
  </code></pre>