Up to about a month ago, my dependecies were resolved correctly. In the last few days, gradle clean build gives me errors for “unable to load” some libraries, most of which from jcenter (but also some from jitpack). So I removed jcenter from the repositories but the error didn’t go away…
It is worth noting that I use intelliJ, and previously the editor couldn’t resolve some libraries on the editor (showed red lines in the code) but compiled just fine. Now I get the opposite: the editor sees everything ok but I can’t compile…
Anybody had similar experience or advices? Thanks.
Afaik jcenter is gone. So it might be that some of your dependencies are not availabale on central.
If they are not availabe and jitpack is no option the only alternatives is to add a directory where you place the libs manually. in this case i think the libs shhould also be included in the repository
Gradle is looking for libraries where your buildscripts tell it to look for them.
The search path for libraries is typically specified in “build.gradle” like this:
repositories {
mavenLocal() // to find libraries installed locally
jCenter()
mavenCentral() // to find libraries released to the Maven Central repository
}
or else in “settings.gradle” like this:
dependencyResolutionManagement {
repositories {
mavenLocal() // to find libraries installed locally
jCenter()
mavenCentral() // to find libraries released to the Maven Central repository
}
}