Photoview: Failed to resolve: com.github.chrisbanes.photoview:library:2.0.0

Created on 8 Jun 2018  路  11Comments  路  Source: Baseflow/PhotoView

When I use it at Android studio ,I have Add "maven { url "https://jitpack.io" } " in root build.gradle file ,and dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
}... but Failed to resolve: com.github.chrisbanes.photoview:library:2.0.0

Most helpful comment

If you are seeing issues, it is more than likely an issue with Jitpack or your internet connection.

Thanks
Adding maven { url "https://jitpack.io" } in project level build.gradle resolved my issue.

All 11 comments

can you post your build.gradle file content

Try it with 2.1.4

I guess your remote repository must have some error . I got the same issues with the guy show up . When I change to use the implementation 'com.github.chrisbanes:PhotoView:2.1.4. It's no problem.

I am also facing this issue.

I am also facing this issue. Can we re-open this issue @Jawnnypoo ?

+1

If you are seeing issues, it is more than likely an issue with Jitpack or your internet connection.

If you are seeing issues, it is more than likely an issue with Jitpack or your internet connection.

Thanks
Adding maven { url "https://jitpack.io" } in project level build.gradle resolved my issue.

it's solved the problem thx 馃憤 @RumsPatel

the problem for me was that I had putmaven { url "https://jitpack.io" } in the wrong place.

I'd put it inside __buildscript__ -> __repositories__ (mistakenly next to maven { url 'https://maven.fabric.io/public' }, but it should've been inside __allprojects__ -> __repositories__

I was also facing the same issue, but my problem was that I'd not included maven { url "https://jitpack.io" } in the allprojects -> repositories inside the project level gradle file.

buildscript {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

I had it added above, and the library failed to load.
Once I added it to the below code also, it worked:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

Hope this helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnthonyKoueik picture AnthonyKoueik  路  9Comments

feresr picture feresr  路  5Comments

sunshaobei picture sunshaobei  路  5Comments

nithinpmolethu picture nithinpmolethu  路  11Comments

afollestad picture afollestad  路  7Comments