android studio often reports an error after relying on the github library: Failed to resolve: com.github..
The solution only needs to add the following warehouse url
maven {
url "https://jitpack.io"
}
Note the adding location: under the allprojects directory
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
google()
jcenter()
}
}