Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml 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