首页 > 解决方案 > 无法解决:'com.github.kolavar:android-support-v4-preferencefragment:-SNAPSHOT'

问题描述

我正在尝试将此 GitHub 库 https://github.com/kolavar/android-support-v4-preferencefragment 与我的 Android 应用程序一起使用。

使用https://jitpack.io/#kolavar/android-support-v4-preferencefragment给出的说明

我将maven { url ' https://jitpack.io ' }添加到我项目的 Build.Gradle

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

然后将'implementation 'com.github.kolavar:android-support-v4-preferencefragment:-SNAPSHOT'添加到应用程序 Build.Gradle 文件中。

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:support-v4:27.1.1'
testImplementation 'junit:junit:4.12'
compile 'com.github.clans:fab:1.6.4'
implementation 'com.github.kolavar:android-support-v4-preferencefragment:-SNAPSHOT'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
compile 'com.android.support:design:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

这会导致无法解决错误消息。任何帮助将不胜感激 :)

标签: androidgradlejitpack

解决方案


推荐阅读