Ionic4: Execution failed for task ':app:processDebugManifest'

I’m working on an ionic4 app with angular and firebase.

I was building the app to android using: ionic cordova run android, it was successfully built the application. Suddenly when I’m running the same command there is an error showing:

Manifest merger failed : Attribute application@appComponentFactory value=( from [] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=( Suggestion: add ‘tools:replace=“android:appComponentFactory”’ to element at AndroidManifest.xml:5:5-37:19 to override.

I’ve tried to add tools:replace="android:appComponentFactory" to element at AndroidManifest.xml. And I’ve have tried also to delete the platforms/android and install it again without getting the result

Does anyone have any idea about what happening? or can anyone help me with this issue!

the solution: