MagicIndicator 指示器使用时报Error(96,20) Failed to resolve: com.github.hackware1993:MagicIndicator:1.5.0

在AndroidStudio3.0使用MagicIndicator 指示器时 报错

Error(96,20) Failed to resolve: com.github.hackware1993:MagicIndicator:1.5.0

如下:

解决方法:

在project下的build.gradle ——> allprojects {}  ——>repositories 下添加代码:

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

 

你可能感兴趣的:(异常,Failed,to,resolve,MagicIndicator,指示器)