1

我正在尝试使用 amlcurran/showcaseview 库并且我正在关注教程,但我无法解析该库:

Error:(29, 13) Failed to resolve: com.github.amlcurran.showcaseview:library:5.0.0

这是我的 build.gradle(project) 文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.wolverine.showcasetutorial"
        minSdkVersion 9
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven { url "http://jcenter.bintray.com" }
    mavenCentral()
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.github.amlcurran.showcaseview:library:5.0.0'
}

请帮我解决这个问题。

4

1 回答 1

0

将此添加到您的清单文件

<uses-sdk tools:overrideLibrary="com.github.amlcurran.showcaseview"/>
于 2015-10-28T20:39:28.597 回答