实现 'com.github.prolificinteractive:material-calendarview:2.0' 无法解析

Ken*_*nio 2 android calendarview

为什么我的材质日历视图无法解析,这是我的模块:app

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.project.cms"
        minSdkVersion 22
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner 
  "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android- optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
    implementation 'com.android.support:design:26.0.0-beta1'
    implementation 'com.android.support:support-v4:26.0.0-beta1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.2'
    implementation 'com.github.ybq:Android-SpinKit:1.2.0'
    implementation 'com.android.support:cardview-v7:26.0.0-beta1'
    implementation 'com.android.support:recyclerview-v7:26.0.0-beta1'
    implementation 'com.github.prolificinteractive:material-calendarview:2.0'

}
Run Code Online (Sandbox Code Playgroud)

这是我的构建文件

buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

当我同步 gradle 时,显示的错误是

无法解析:com.github.prolificinteractive:material-calendarview:2.0

open.dependency.in.project.struct 受影响的模块应用程序请帮助我

Vis*_*ani 6

您的依赖版本有问题

implementation 'com.github.prolificinteractive:material-calendarview:2.0'
Run Code Online (Sandbox Code Playgroud)

用。。。来代替

implementation 'com.github.prolificinteractive:material-calendarview:2.0.0'
Run Code Online (Sandbox Code Playgroud)