Not able to load com.github.smarteist.autoimageslider:1.4.0

Viewed 1725

Getting red underline while adding com.Smarteist.autoimageslider.slideview in XML file in Android Studio. How to resolve?

It's showing: Unable to resolve dependency for ':app@debug/compileClasspath':Could not resolve com.github.smarteist:autoimageslider:1.4.0

1 Answers

check if jcenter() is missing in your build.gradle, if add it.

allprojects {
    repositories {
        google()
        //here
        jcenter()
        mavenCentral()
   
    }
}

enter image description here

Related