androidandroid-studiokotlinimplementationandroid-photoview

I can't import PhotoView.What should I do?


I do not understand what to do with this plugin, I have been suffering for an hour .. My version is android studio 7.0.2 here is the code

 photoViewVersion = "2.3.0"
}
dependencies {
implementation "com.github.chrisbanes:PhotoView:$photoViewVersion"
}``` 

Solution

  • Try adding maven { url "https://jitpack.io" } to your top level gradle build file.

    See: https://github.com/Lichenwei-Dev/ImagePicker/issues/1