Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v code example

Example: Manifest merger failed androidx

Inside app > build.gradle :
dependencies {
	...
    // add the following single line for androidx
    implementation 'androidx.appcompat:appcompat:1.1.0'
    // implementation before testImplementation
    testImplementation ......
}

Inside gradle.properties :
	android.useAndroidX=true
	android.enableJetifier=true
    
Inside AndroidManifest.xml :
	<application
    	....
        tools:replace="android:appComponentFactory"
        android:appComponentFactory="whateverString"
        ....
    >

Tags:

Misc Example