无法解决:haibison.android:underdogs

时间:2016-12-23 12:21:21

标签: android android-gradle

突然间我收到了这个错误:

错误:无法解决:haibison.android:underdogs:+ 打开文件
在“项目结构”对话框中显示

这是构建文件:     申请插件:' com.android.application'

1, 0, 0, 0
0, 1, 0, 0
0, 0, 1, 0
0, 0, 0, 1

我们将不胜感激。

,项目构建文件是:

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "ro.demo.proj1"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 17
        versionName "1.0.17"
    }

    buildTypes {
        // Proguard Settings
        debug {
            minifyEnabled true
            proguardFiles '../proguard_dexguard_configs/proguard-android.txt', '../proguard_dexguard_configs/proguard-project.txt'
        }
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles '../proguard_dexguard_configs/proguard-android.txt', '../proguard_dexguard_configs/proguard-project.txt'
        }
    }

    /*sourceSets {
         main {
             java {
                 exclude '**//*OpenCVUtils.java'
                 exclude '**//*Recognizer.java'
                 exclude '**//*BasicCropper.java'
             }
         }
     }*/

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
    }

    dexOptions {
        javaMaxHeapSize "4g"
    }
}

dependencies {

    compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'

    compile 'haibison.android:lockpattern:10.0.0'

}

1 个答案:

答案 0 :(得分:1)

来自https://bitbucket.org/haibison/android-lockpattern/wiki/Quick-Use

,您似乎还需要在主build.gradle

中添加以下内容
repositories {
    ...
    maven { url 'https://haibison.bitbucket.io/maven-repos' }
}