Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo is unavailable #46

Open
olegst90 opened this issue Oct 12, 2017 · 4 comments
Open

Repo is unavailable #46

olegst90 opened this issue Oct 12, 2017 · 4 comments

Comments

@olegst90
Copy link

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
Copy link

I'm facing this issue too

@pratham2003
Copy link

pratham2003 commented Oct 31, 2017

🤦‍♂️
Step 1. Add the JitPack repository in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

@RangerMauve
Copy link

This isn't working for me. :(

@RoneyThomas
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants