I am trying to include the Patrol library in my Flutter project by adding it as a dependency through JitPack. However, I am encountering an issue where Gradle fails to resolve the dependency, returning a 401 Unauthorized error.
Here is the relevant part of my build.gradle file:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.leancode:patrol:3.9.0'
}
And here is the error message I receive when running the build:
> Could not resolve com.github.leancode:patrol:3.9.0.
> Could not get resource 'https://jitpack.io/com/github/leancode/patrol/3.9.0/patrol-3.9.0.pom'.
> Could not GET 'https://jitpack.io/com/github/leancode/patrol/3.9.0/patrol-3.9.0.pom'. Received status code 401 from server: Unauthorized
I suspect that the repository might be private, requiring authentication to access it. Though, I thought flutter Patrol was a public source.
- How can I confirm if the repository is indeed private, and if so, what are the steps to properly authenticate and access it?
- Is Patrol no longer public?
- Are there any other potential issues I might be overlooking?
New contributor
SackofCherries is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.