failed to resolve:com.github.********

The project is below build.gradle In

allprojects {
    repositories {
        jcenter()
    }
}

join

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

That is to say

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

Read More: