skip to Main Content

I wanted to add the github library to gradle in Android Studio, but it gave the following error:

Failed to resolve: com.github.warkiz.widget:indicatorseekbar:2.1.2

I needed to add the following repositories, I added them but it still gave the same error.

allprojects { 

repositories { ... 

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

} 

}

My Gradle(The libraries I marked with a yellow pen are the ones that give the same error.):

Click to see the picture

Click to see the picture

Click to see the picture

2

Answers


  1. In your app level build gradle add corresponding library

    implementation 'com.github.warkiz.widget:indicatorseekbar:2.1.2'
    
    Login or Signup to reply.
  2. Try adding another Maven repository alongside your current one, like this:

    maven {
        url 'https://jitpack.io'
    }
    
    // Add this
    maven {
        url 'https://maven.aliyun.com/repository/jcenter'
    }
    

    I hope this helps!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search