相关文章推荐
欢快的青蛙  ·  node.js - Why PM2 can ...·  1 年前    · 
儒雅的椅子  ·  VB6.0 ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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"
                yes I put it above dependencies.// Top-level build file where you can add configuration options common to all sub-projects/modules.  buildscript {     repositories {         jcenter()         mavenCentral()         maven {             url "repo.pageturner-reader.org"         }     }     dependencies {         classpath 'com.android.tools.build:gradle:2.1.2'
– Muthukumar S
                Aug 16, 2016 at 9:39

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'
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.