我不能导入 PhotoView.What 应该怎么办?

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

不懂这个插件是干嘛的,我折腾了一个小时..我的版本是android studio 7.0.2 这是代码

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

尝试将 maven { url "https://jitpack.io" } 添加到您的顶级 gradle 构建文件。

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

确保您在 build.gradle(项目级别)

中具有以下内容
allprojects {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

buildscript {
    repositories {
        maven { url "https://www.jitpack.io" }
    }   
}

也尝试以下列方式将依赖项放入您的 gradle 文件(应用程序级别)

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