Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to resolve: com.github.chrisbanes:PhotoView:2.3.0

See original GitHub issue

ERROR: Failed to resolve: com.github.chrisbanes:PhotoView:2.3.0 Show in Project Structure dialog Affected Modules: app

Root Build.Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.3.61'
    repositories {
    dependencies {
        classpath ''
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

allprojects {
    repositories {
        maven { url "" }

task clean(type: Delete) {
    delete rootProject.buildDir

app build.gradle

apply plugin: ''

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId ""
        minSdkVersion 22
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true // This line

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), ''

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.core:core-ktx:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    def cardViewVersion = "1.0.0"
    def recyclerViewVersion = "1.0.0"
    def glideVersion = "4.11.0"
    def roomVersion = "2.2.3"
    def materialIoVersion = "1.2.0-alpha04"
    def kotlinCoroutinesVersion = "1.3.3"
    def materialDialogVersion = "3.1.1"
    def gsonVersion = "2.8.6"
    def photoViewVersion = "2.3.0"

    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion"

    // room
    kapt "$roomVersion"
    implementation "$roomVersion"
    implementation "$roomVersion"

    //material io
    implementation "$materialIoVersion"
    // Card View
    implementation "androidx.cardview:cardview:$cardViewVersion"

    // Recyclerview
    implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"

    implementation "com.github.bumptech.glide:glide:$glideVersion"
    annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"

    implementation "com.afollestad.material-dialogs:core:$materialDialogVersion"
    implementation "com.afollestad.material-dialogs:input:$materialDialogVersion"

    implementation "$gsonVersion"

    implementation 'com.camerakit:camerakit:1.0.0-beta3.11'
    implementation 'com.camerakit:jpegkit:0.1.0'
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.0'
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'

    implementation "com.github.chrisbanes:PhotoView:$photoViewVersion"

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

gegarciacommented, Nov 17, 2021

it worked for me when I added maven { url '' } to my settings.gradle:

dependencyResolutionManagement {
    repositories {
        maven { url '' }
        jcenter() // Warning: this repository is going to shut down soon
stephanenicolascommented, Feb 21, 2020

The lib is hosted on jitpack. It is not a satisfying solution for industrial builds.It is too easy to publish on jitpack on major companies will not do it.

Can you release it to central / jcenter, please ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:(23, 20) Failed to resolve: com.github.chrisbanes ...
I want to use PhotoView for zooming in android but I'm ...
Read more >
Failed to resolve: com.github.chrisbanes:PhotoView:2.3.0 #808
Questions and Help Failed to resolve: com.github.chrisbanes:PhotoView:2.3.0 this error is coming, I know I have to add maven { url ...
Read more >
Failed to resolve: com.github.chrisbanes.photoview:library:2.0.0
When I use it at Android studio ,I have Add "maven { url "" } " in root build.gradle file ,and dependencies ...
Read more >
Failed to resolve: com.github.AppIntro:AppIntro:6.1.0 #957
Describe the bug I added jitpack to my repositories and AppIntro to my dependencies, but still gradle fails to resolve it.
Read more >
Sync project and Error:(110, 14) Failed to resolve: com.github ...
i use Sign project to 'com.github.chrisbanes:PhotoView:1.3.0 and use repositories { maven { url "" } } and Erorro log ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found