如何使用具有compileSdkVersion 28的gotev:uploadservice?

时间:2019-01-08 03:03:18

标签: android build.gradle

我有:

android {
compileSdkVersion 28
...
}

我有这些依赖项

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0 '
    implementation 'com.android.support:design:28.0.0'
    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.android.volley:volley:1.1.1'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'net.gotev:uploadservice:3.4.2'
    implementation 'de.hdodenhof:circleimageview:3.0.0'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
}

我收到以下错误:

  

所有com.android.support库必须使用完全相同的版本   规范(混合版本可能导致运行时崩溃)。找到了   版本28.0.0、27.0.2。

很明显问题出在getev上传服务库上,因为检查了它的build.gradle我发现它具有以下代码行:

def supportLibraryVersion = "27.0.2"

dependencies {
    compile "com.android.support:appcompat-v7:${supportLibraryVersion}"
    compile "com.android.support:support-v4:${supportLibraryVersion}"
}

0 个答案:

没有答案