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

Failed to resolve: com.github.chrisbanes.photoview:library:2.0.0 #616

Closed
zhangzhen92 opened this issue Jun 8, 2018 · 13 comments
Closed

Comments

@zhangzhen92
Copy link

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

@tmac1999
Copy link

can you post your build.gradle file content

@Jawnnypoo
Copy link
Contributor

Try it with 2.1.4

@jasonpp
Copy link

jasonpp commented Jan 25, 2019

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.

@chhatrasal09
Copy link

I am also facing this issue.

@ujjwalagrawal17
Copy link

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

@NickIvantsov
Copy link

+1

@Jawnnypoo
Copy link
Contributor

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

@ghost
Copy link

ghost commented Feb 7, 2020

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.

@usamaaelgendy
Copy link

it's solved the problem thx 👍 @RumsPatel

@SIMMORSAL
Copy link

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

@rayzone107
Copy link

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.

@iliyasansari07
Copy link

Paste - maven { url "https://www.jitpack.io" } in settings.gradle and
paste this dependency - implementation 'com.github.chrisbanes:PhotoView:latest.release.here' in build.gradle

@IssamAth
Copy link

i already have this inside my Project Gradle

repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }

I have also added implementation 'com.github.chrisbanes:PhotoView:2.3.0' to the dependencies inside Module Gradle yet it's still not working, can anyone help me ?

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