libs.versions.toml:
materialCalendarVersion = "2.0.0"
materialCalendarVersion2 = "1.5.3"
materialCalendarVersion3 = "1.9.2"
materialCalendarVersion4 = "2.1.5"
material-calendar-view = { group = "com.github.prolificinteractive", name = "material-calendarview", version.ref = "materialCalendarVersion" }
material-calendar-view2 = { group = "com.github.dorukkangal", name = "material-calendar-view", version.ref = "materialCalendarVersion2" }
material-calendar-view3 = { group = "com.applandeo", name = "material-calendar-view", version.ref = "materialCalendarVersion3" }
material-calendar-view4 = { group = "com.kizitonwose.calendar", name = "view", version.ref = "materialCalendarVersion4" }
I'm getting the same error. I've tried all these libraries, but the one that worked for me without any errors is the latest one. Why?
Library (prolificinteractive): The latest version is old, I think it's 2020. And it's not ready for androidx, so it creates conflicts. Needs to add jitpack.io. https://github.com/prolificinteractive/material-calendarview
Library (dorukkangal): It uses appcompat-v7 and android.support, so it conflicts with androidx and is outdated. Needs to add jitpack.io.
https://jitpack.io/p/dorukkangal/material-calendar-view
Library (applandeo): It works correctly, uses androidx, but it's not adapted for Jetpack Compose. You need MavenCentral, which is already included in the project by default.
https://github.com/Applandeo/Material-Calendar-View
Library (kizitonwose): It's the newest and works for XML, Compose, and cross-platform compose. You need MavenCentral, which is already included in the project by default. https://github.com/kizitonwose/Calendar?tab=readme-ov-file
It's the one I'm going to use. Compose is the future of views on Android.
Hope this helps.