Android X: outils:remplacer spécifié à la ligne: pour l'attribut, mais aucune nouvelle valeur spécifiée

J'ai essayé beaucoup de solutions sur ce site web, mais encore, le problème n'est pas résolu. Le problème est dû à Android X de la bibliothèque. Quand j'ai ajouté Android X, ce problème a été résolu, mais il a ouvert de nouveaux problème. Je ne veux pas ajouter Android X. Comment résoudre ce problème?

Plus tôt cette erreur était à venir:

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 <application> element at AndroidManifest.xml:19:5-142:19 to override.

Après j'ai ajouté tools:replace="android:appComponentFactory", cette erreur est venu:

 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)

La fusion d'Erreur (dans le Manifeste Android):

Erreur: outils:remplacer spécifié à la ligne:2 pour l'attribut
android:appComponentFactory, mais aucune nouvelle valeur spécifiée application principale
manifeste (ce fichier), ligne 1

Manifeste:

<?xml version="1.0" encoding="utf-8"?>
<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">

    ...

    <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">
       ...