Manifest merger failed: Attribute application@appComponentFactory

孤者浪人 提交于 2019-12-04 04:05:20

the date-picker has androidx as a dependency. downgrading to version 3.6.4 would make it depend on android.support again - or upgrade your app to use androidx. see issue 543.

// https://mvnrepository.com/artifact/com.wdullaer/materialdatetimepicker
implementation "com.wdullaer:materialdatetimepicker:3.6.4"

^ this would be the most easy way to fix the conflicting dependencies.

You are getting this error because the library you are importing is based on androidx which is a major improvement on the support libraries you are using.

Now you three solutions:

  1. Use another Date picker library which is based on the previous support versions (Recommended and best way).

  2. Change your support libraries to androix. (Recommended but difficult)

  3. Add ignore tools (Easy way out)

Here is a link I found: Date Picker

implementation 'com.github.Kunzisoft:Android-SwitchDateTimePicker:2.0'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!