In your build.gradle
include http://jcenter.bintray.com
as a repository before mavenCentral
like this:
repositories {
maven { url "http://jcenter.bintray.com" }
mavenCentral()
}
Use in your project dependencies as usual:
dependencies {
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
}
Why prior to mavenCentral?
Otherwise gradle will look first in mavenCentral
, find ShowCaseView
artifact with the same version, but won't find the package and will report an error, without looking for same artifact with another packaging in other repositories.
Additional Hint:
If you face this kind of error for any other libraries go to bintray.com ans search for the library that you want. If it is found there then click on the library and u can find the instructions on how to setup that library. Hope it helps many people who comes and searches for the same query.