无法解决':app @ release / compileClasspat'的依赖关系:无法解析com.nineoldandroidlibs:library:2.4.0

时间:2018-01-03 09:13:50

标签: android gradle

无法解决':app @ release / compileClasspat':无法解析com.nineoldandroidlibs:library:2.4.0
我正在尝试导入花哨的按钮和饼图库,但我得到上面提到的错误。我尝试了一切但没有任何作用。
以下是项目的gradle文件

    buildscript {

    repositories {
      google()
//       maven { url "https://maven.google.com"}
    maven {
        url 'https://maven.google.com'
    }
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
repositories {
    maven {
        url 'https://maven.google.com'
    }
     google()
 //   maven { url "https://maven.google.com"}
    //maven { url "https://jitpack.io" }
    jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

以下是我的Gradle项目文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.example.hamzanaeem.gasapplication"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.github.blackfizz:eazegraph:1.2.2@aar'
    compile 'com.github.medyo:fancybuttons:1.8.4'
}


请帮助我已经尝试过stackoverflow的所有解决方案。 感谢

0 个答案:

没有答案