我正在尝试使用此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'
}
这将导致无法解决错误消息。任何帮助将不胜感激:)