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

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

Open
rommeltraya25 opened this issue Sep 29, 2021 · 8 comments

Comments

@rommeltraya25
Copy link

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

@magamal
Copy link

magamal commented Oct 16, 2021

i have the same problem

@yilmazgokhan
Copy link

++

@magamal
Copy link

magamal commented Oct 24, 2021

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" }
    }
}

@FirstVoyager
Copy link

Thank you. It works for me.

@yrjwcharm
Copy link

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

@magamal
Copy link

magamal commented Dec 20, 2021

@yrjwcharm I have updated my comment to be clear.

@vikaskandari
Copy link

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'
}

@darshdobariya
Copy link

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.

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

7 participants