我正在尝试使用jitpack.io导入库。这是我的顶级:build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
这是我的 app/build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.domain.app"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile files('libs/Parse-1.9.1/Parse-1.9.1.jar')
compile files('libs/Parse-1.9.1/bolts-android-1.2.0.jar')
compile 'com.github.deano2390:MaterialShowcaseView:1.0.6'
}
我不断得到:Error:(27, 13) Failed to resolve: com.github.deano2390:MaterialShowcaseView:1.0.6
没有任何其他信息。
按照图书馆作者的建议,我也尝试过使用 sffuix:
compile 'com.github.deano2390:MaterialShowcaseView:1.0.6@aar'