错误:无法解析':app @ debugAndroidTest / compileClasspath'的依赖项:无法解析com.github.PhilJay:MPAndroidChart:v2.2.4

时间:2019-02-28 12:46:25

标签: android

如何解决此问题。

1)

  

错误:无法解析':app @ debugAndroidTest / compileClasspath'的依赖关系:无法解析com.github.PhilJay:MPAndroidChart:v2.2.4。

2)

  

错误:无法解析':app @ debugAndroidTest / compileClasspath'的依赖关系:无法解析com.github.scottyab:showhidepasswordedittext:0.8。

build.gradle

buildscript { 
    repositories { 
        google() 
        jcenter() 
    } 

    dependencies { 
        classpath 'com.android.tools.build:gradle:3.3.1' 
    } 
} 

allprojects { 
    repositories { 
        google() 
        jcenter() 
        maven { 
            url "jitpack.io" 
        } 
    } 
} 

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

1 个答案:

答案 0 :(得分:1)

确保在项目级别jitpack.io内的allprojects节点中有build.gradle个Maven存储库

maven {
    url "https://jitpack.io"
}

请参见https://github.com/scottyab/showhidepasswordedittexthttps://github.com/PhilJay/MPAndroidChart

相关问题