首页 > Android studio gradle依赖错误

Android studio gradle依赖错误

  1. 列表项目


这个错误

https://github.com/cymcsg/UltimateRecyclerView
这个开源框架的链接

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "zhang.com.java.test"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
allprojects {
    repositories {
        jcenter()
        maven { url "http://dl.bintray.com/jjhesk/maven" }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.stylingandroid.prism:prism:1.0.1'
    compile 'com.hkm.ui:ultimaterecyclerview:0.5.6'
}

上面是我的gradle文件


正确写法应该是这样的,你是不是吧maven { url "http://dl.bintray.com/jjhesk/maven" }写到了buildscript里面。

allprojects {
    repositories {
        jcenter()
        maven { url "http://dl.bintray.com/jjhesk/maven" }
    }
}  
【热门文章】
【热门文章】