2

I integrated HtmlSpanner into my Android application. I'm getting the following error:

Failed to resolve: com.osbcp.cssparser:cssparser:1.5.

How do I solve this error?

Thanks for help

swiftBoy
  • 35,607
  • 26
  • 136
  • 135

2 Answers2

5

This library is not in the standard Maven repository, that Gradle uses to resolve dependencies.

You should add the following repository address to your build.gradle file:

repositories {
    mavenCentral()
    maven {
        url "http://repo.pageturner-reader.org"
    }
}
R. Zagórski
  • 20,020
  • 5
  • 65
  • 90
2

If somebody is still looking, this lib or its analogue is in maven repo

So you can just add dependency to build.gradle:

 implementation 'com.osbcp:cssparser:1.7'

If you also need HTMLCleaner dependency, you can also find it in the standard repo

And add as a dependency to build.gradle like this:

implementation 'net.sourceforge.htmlcleaner:htmlcleaner:2.26'
Inliner
  • 1,061
  • 7
  • 10