Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed with multiple errors, see logs

When running the app I’m getting this error in build:

Execution failed for task ‘:app:processDebugMainManifest’. > Manifest merger failed with multiple errors, see logs

And in AndroidManifest.xml, this error:

Merging Errors: Warning Package name ‘android.support.graphics.drawable’ used in: AndroidManifest.xml, AndroidManifest.xml. animated-vector-drawable:28.0.0 manifest Warning Package name ‘androidx.versionedparcelable’ used in: AndroidManifest.xml, AndroidManifest.xml. versionedparcelable:1.1.1 manifest Error: tools:replace specified at line:10 for attribute android:appComponentFactory, but no new value specified WhatsApp_Clone.app main manifest (this file), line 9 Error: Validation failed, exiting WhatsApp_Clone.app main manifest (this file)

Remove these two lines AndroidManifest.xml#L3 line and AndroidManifest.xml#L17

and Add

android.enableJetifier=true

at the end of gradle.properties

Take a look at the Androidx migration guide for reference

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.