[solved] How to declare mvnrepository.com in repositories

Hi all,

I have a dependencies section that lists com.wang.avi:library:2.1.3 as a dependency.

dependencies {
  ...
  implementation 'com.wang.avi:library:2.1.3'
  ...
}

But com.wang.avi:library:2.1.3 is only available in “mvnrepository.com” and not in mavenCentral()

So I tried:

repositories {
        google()
        mavenCentral()
        maven{ url 'https://mvnrepository.com/'}
    }

But com.wang.avi:library:2.1.3 is not found.

How to make “mvnrepository.com” added as repository?
Thank you very much.

Exactly like you did.
The problem is, that mvnrepository.com is not a repository so you will never find any library in it.
It is an indexing site indexing other Maven repositories.
So use one of the repositories that are displayed on mvnrepository.com as having that library available.

1 Like