PhotoView
PhotoView copied to clipboard
Could not find com.github.chrisbanes:PhotoView:2.3.0. Required by: project :app Search in build.gradle files
Class referenced in the layout file, com.github.chrisbanes.photoview.PhotoView, was not found in the project or the libraries
i have the same problem
++
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" }
}
}
Thank you. It works for me.
@FirstVoyager how to use it .I don't understand your words
@yrjwcharm I have updated my comment to be clear.
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'
}
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.