0

It's my gradle projects with the following error details:

Could not find json-lib-2.2.3.jar (net.sf.json-lib:json-lib:2.2.3).
Searched in the following locations:
    https://repo.maven.apache.org/maven2/net/sf/json-lib/json-lib/2.2.3/json-lib-2.2.3.jar

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I've tried the following ways which seem to be useless

    dependencies {
        implementation "net.sf.json-lib:json-lib:2.4:jdk15"
    }

I didn't depended any 'json-lib' in my gradle projects, but there was something wrong with the 'json-lib' occurred in my projects which troubled me seriously...

Da Vinci
  • 1
  • 1
  • mvnrepository gives me this: `implementation 'net.sf.json-lib:json-lib:2.2.3'`. Not sure why you are tacking on `:jdk15`. Note that this library suffers from a whole bunch of vulnerabilities from dependencies. Are you required to use this library? If not, seek out one that doesn't have such vulnerabilities. This might help make your decision: https://www.baeldung.com/java-json – pfurbacher Feb 21 '23 at 05:01

0 Answers0