Failed to resolve: com.github.ozodrukh: CircularReveal: 1.1.0

I am trying to import this library ( https://github.com/ozodrukh/CircularReveal ) into my project by writing:compile 'com.github.ozodrukh:CircularReveal:1.1.0@aar'

But I am getting this error:

Error:(25, 13) Failed to resolve: com.github.ozodrukh:CircularReveal:1.1.0
<a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

      

I don't understand why, since I have successfully imported other libraries.

+3


source to share


2 answers


From the Github page of the repository:

This library is not released on Maven Central, but you can use JitPack instead. Add maven remote url:



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

      

Perhaps you forget to add this to your gradle file?

+4


source


you have to add the repository first and then the dependency to your build.gradle (app: module), for example:

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

      

}



dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile ('com.github.ozodrukh:CircularReveal:2.0.1@aar') {
        transitive = true;
    }
}

      

ok you can do this, i hope this can help you!

+1


source







All Articles