1. 程式人生 > >Error:(63, 20) Failed to resolve: com.github.chrisbanes:PhotoView:2.0.0

Error:(63, 20) Failed to resolve: com.github.chrisbanes:PhotoView:2.0.0

報錯:Error:(63, 20) Failed to resolve: com.github.chrisbanes:PhotoView:2.0.0
Show in File

Show in Project Structure dialog

解決方案:是在專案的build.gradle新增如下:photoview的maven倉庫,maven { url "https://jitpack.io" }(如下)

allprojects {
    repositories {
        google()
        maven { url "https://jitpack.io" }
        jcenter()
    }
}