photoview使用遇到Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6

在app的build.gradle添加photoview依赖

//photoview图片缩放库

compile'com.github.chrisbanes:PhotoView:1.2.6'

但是会出现Error:(70, 13) Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6问题,

解决方法:

在项目的build.gradle添加如下:photoview的maven仓库

maven{url"https://jitpack.io"}


photoview使用遇到Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6_第1张图片

你可能感兴趣的:(photoview使用遇到Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6)