Baseflow / PhotoView

Implementation of ImageView for Android that supports zooming, by various touch gestures.
https://baseflow.com
Apache License 2.0
18.77k stars 3.92k forks source link

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

Open rommeltraya25 opened 2 years ago

rommeltraya25 commented 2 years ago

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

magamal commented 2 years ago

i have the same problem

yilmazgokhan commented 2 years ago

++

magamal commented 2 years ago

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 commented 2 years ago

Thank you. It works for me.

yrjwcharm commented 2 years ago

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

magamal commented 2 years ago

@yrjwcharm I have updated my comment to be clear.

vikaskandari commented 1 year ago
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 commented 7 months ago

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.