Can anyone help with this issue? Not sure why its not resolving for 2.0.1 but it is for 1.4.3
Failed to resolve: com.github.prolificinteractive:material-calendarview:2.0.1 Affected Modules: app
build.grade (Project) file has:
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
build.gradle(Module) file has:
dependencies {
implementation 'com.github.prolificinteractive:material-calendarview:2.0.1' <-"correct" per docs
// implementation 'com.prolificinteractive:material-calendarview:1.4.3' <-- works
// implementation 'com.prolificinteractive:material-calendarview:2.0.1' <-- does not work
// implementation 'com.github.prolificinteractive:material-calendarview:2.0.1' <-- does not work
// implementation 'com.github.prolificinteractive:material-calendarview:1.4.3' <-- does not work
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Also tried adding via the Project Structure but it cannot find com.github.prolificinteractive:material-calendarview if I search for it but if I search material-calendarview i can find 1.4.3
Thanks
If this is a new project, it's possible you have settings.gradle, then you should add it there:
dependencyResolutionManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}
You can always remove this code block from the settings.gradle and use it as suggested in the github repo. Make sure that you add maven { url 'https://jitpack.io' }
inside allprojects
, not just the repositories
block. Like this:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}