Repo is unavailable
Opened this issue · 4 comments
olegst90 commented
Hello!
I've added repo and dependency exactly as described to my gradle project, when I build it I get such an error:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve com.github.franmontiel:PersistentCookieJar:v1.0.1.
Required by:
:libjam:unspecified
> Could not resolve com.github.franmontiel:PersistentCookieJar:v1.0.1.
> Could not get resource 'https://jitpack.io/com/github/franmontiel/PersistentCookieJar/v1.0.1/PersistentCookieJar-v1.0.1.pom'.
> Could not GET 'https://jitpack.io/com/github/franmontiel/PersistentCookieJar/v1.0.1/PersistentCookieJar-v1.0.1.pom'.
> peer not authenticated
That said, I can access the pom from my browser. What can it be?
pratham2003 commented
I'm facing this issue too
pratham2003 commented
🤦♂️
Step 1. Add the JitPack repository in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
RangerMauve commented
This isn't working for me. :(
RoneyThomas commented
I know it's been a long time, but on the newer Android Studio project you need to add maven { url "https://jitpack.io" }
to the settings.gradle under dependencyResolutionManagement. This is how it should look after you add jitpack.
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
rootProject.name = "Foodbar"
include ':app'