add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:13:5-195:19 to override. code example
Example: 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:6:5-34:19 to override.
android:appComponentFactory="androidx.core.app.CoreComponentFactory"
tools:replace="android:appComponentFactory"
android.useAndroidX=true
android.enableJetifier=true