PhotoView icon indicating copy to clipboard operation
PhotoView copied to clipboard

Could not find com.github.chrisbanes:PhotoView:2.3.0. Required by: project :app Search in build.gradle files

Open rommeltraya25 opened this issue 3 years ago • 8 comments

Class referenced in the layout file, com.github.chrisbanes.photoview.PhotoView, was not found in the project or the libraries

rommeltraya25 avatar Sep 29 '21 20:09 rommeltraya25

i have the same problem

magamal avatar Oct 16 '21 20:10 magamal

++

yilmazgokhan avatar Oct 20 '21 17:10 yilmazgokhan

you should add it in settings.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url "https://jitpack.io" }
    }
}

magamal avatar Oct 24 '21 09:10 magamal

Thank you. It works for me.

FirstVoyager avatar Dec 05 '21 19:12 FirstVoyager

@FirstVoyager how to use it .I don't understand your words

yrjwcharm avatar Dec 16 '21 08:12 yrjwcharm

@yrjwcharm I have updated my comment to be clear.

magamal avatar Dec 20 '21 08:12 magamal

dependencies {
    implementation 'com.github.chrisbanes:PhotoView:latest.release.here'
}

replace latest.release.here with the latest release verion code currently its 2.0.0

it should look like this

dependencies {
    implementation 'com.github.chrisbanes:PhotoView:2.0.0'
}

vikaskandari avatar Apr 26 '23 05:04 vikaskandari

you should add it in settings.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url "https://jitpack.io" }
    }
}

It's worked.

darshdobariya avatar Feb 01 '24 06:02 darshdobariya