I was trying to add the following library:
https://github.com/wdullaer/MaterialDateTimePicker
After adding the dependency, It is showing me the following error.
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:7:5-34:19 to override.
I added
tools:replace="android:appComponentFactory"
in the manifest, after adding its showing me following error :
Merging Errors: Error: tools:replace specified at line:8 for attribute android:appComponentFactory, but no new value specified app main manifest (this file), line 7 Error: Validation failed, exiting app main manifest (this file)
I tried to solve it, but no luck. I visited a few similar links also. Please suggest, what should I do to fix this issue?