我想在 android 中使用 PhotoView 进行缩放 https://github.com/chrisbanes/PhotoView 但我收到以下错误
dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.1.3 '//zoom
implementation 'com.android.support:support-v4:26.0.2 '
}
根级别 build.gradle
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
最佳答案
确保,您在根级别 build.gradle
部分中添加了它。
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
之后,Clean-Rebuild-Run
。
演示
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
关于android - 错误 :(23, 20) 无法解析 : com. github.chrisbanes :PhotoView:2. 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48204743/