0

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?

Brijesh Joshi
  • 1,817
  • 1
  • 9
  • 24
Shishupal Shakya
  • 1,632
  • 2
  • 18
  • 41

1 Answers1

0

I had a discussion with its developer over GitHub, so the issue is resolved by using version 3.6.4 as of 4.0.0 is using androidx

Shishupal Shakya
  • 1,632
  • 2
  • 18
  • 41